/* ============================================================
   TNJ - Components CSS
   Navbar, Footer, Cards, Modals, Forms
   ============================================================ */

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-mid);
}

.navbar.scrolled {
  background: rgba(26, 14, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform var(--transition-mid), filter var(--transition-mid);
  filter: drop-shadow(0 0 5px rgba(201,168,76,0.35));
}

.navbar__logo:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.6));
}

.navbar__brand {
  display: flex;
  flex-direction: column;
}

.navbar__brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1;
}

.navbar__brand-sub {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-mid);
}

.navbar__link:hover,
.navbar__link.active {
  opacity: 1;
  color: var(--gold-light);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__cta:hover {
  background: var(--gold);
  color: var(--brown-deep);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.navbar__hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  display: block;
  transition: all var(--transition-mid);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 80vw);
  height: 100vh;
  background: var(--brown-deep);
  border-left: 1px solid rgba(201,168,76,0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  gap: 2rem;
  transition: right var(--transition-slow);
}

.navbar__mobile.open {
  right: 0;
}

.navbar__mobile .navbar__link {
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.navbar__overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--brown-deep);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.3));
}

.footer__logo-text .name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
}

.footer__logo-text .sub {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer__contact-icon {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer__contact-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
  position: relative;
  background: var(--brown-mid);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-mid);
  group: true;
}

.product-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.1);
}

.product-card__image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  background: rgba(201,168,76,0.9);
  color: var(--brown-deep);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30,16,8,0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition-mid);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__overlay-btn {
  padding: 0.55rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: rgba(30,16,8,0.5);
  backdrop-filter: blur(4px);
}

.product-card__overlay-btn:hover {
  background: var(--gold);
  color: var(--brown-deep);
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__category {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== PRODUCT MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,5,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--brown-mid);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-mid);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}

.modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.modal__content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30,16,8,0.8);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--cream);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal__close:hover {
  background: var(--gold);
  color: var(--brown-deep);
}

.modal__category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cream);
  line-height: 1.2;
}

.modal__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.modal__meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.modal__meta-label { color: var(--text-muted); }
.modal__meta-value { color: var(--gold-light); font-weight: 500; }

.modal__contact-btn {
  margin-top: 0.5rem;
}

/* ==================== FORMS ==================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-input,
.form-textarea,
.form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-select option {
  background: var(--brown-mid);
  color: var(--cream);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2rem;
  transition: all var(--transition-fast);
  background: transparent;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
}

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-text strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-info-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */

/* ── Tablet 1024px ────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid  { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

/* ── Tablet / Large Phone 768px ──────── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar__menu { display: none; }
  .navbar__cta  { display: none; }
  .navbar__hamburger { display: flex; }

  /* Product modal */
  .modal__inner { grid-template-columns: 1fr; }
  .modal__image { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 260px; }
  .modal__image img { min-height: 260px; }
  .modal__content { padding: 1.25rem 1.25rem 2rem; }
  .modal__title   { font-size: 1.4rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* Page banner (about, contact) */
  .page-banner { height: 260px; }
  .page-banner h1 { font-size: 2rem; }

  /* Products filter bar */
  .products-filter {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .filter-btn {
    font-size: 0.65rem;
    padding: 0.45rem 0.9rem;
  }

  /* Products search */
  .products-search {
    flex-direction: column;
    align-items: stretch;
  }
  .products-search input { width: 100%; }

  /* Section headings */
  .section-header h2 { font-size: 2rem; }
}

/* ── Phone 480px ──────────────────────── */
@media (max-width: 480px) {
  /* Products grid → single column */
  .products-grid { grid-template-columns: 1fr; }

  /* Navbar logo: smaller text */
  .navbar__brand-name { font-size: 1rem; }
  .navbar__brand-sub  { display: none; }
  .navbar__logo img   { width: 36px; height: 36px; }

  /* Modal full-screen */
  .modal {
    max-height: 100dvh;
    border-radius: 0;
    overflow-y: auto;
  }
  .modal-backdrop { padding: 0; align-items: flex-end; }

  /* Contact form */
  .contact-form-row { grid-template-columns: 1fr; }

  /* Footer single col adjustments */
  .footer__logo img { width: 42px; height: 42px; }
}

/* ── Small phone 390px (iPhone 14 base) ── */
@media (max-width: 390px) {
  .navbar__brand-name { font-size: 0.9rem; }
  .products-grid { gap: 1rem; }
}


/* ==================== PAGE BANNER ==================== */
.page-banner {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.page-banner:hover .page-banner__bg { transform: scale(1); }

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,10,5,0.4) 0%,
    rgba(15,10,5,0.6) 100%
  );
}

.page-banner__content {
  position: relative;
  z-index: 1;
}

/* ==================== GOLD LINE ==================== */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto;
}

.gold-line-left {
  margin-left: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ==================== FORM EXTRAS ==================== */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ==================== PRODUCT CARD PRICE ==================== */
.product-card__price {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.modal__price {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0.25rem 0 0.75rem;
  letter-spacing: 0.05em;
}

/* ==================== FLOATING CONTACTS (BOTTOM LEFT) ==================== */
.floating-contacts {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown-mid);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.floating-contact-btn:hover {
  background: var(--gold);
  color: var(--brown-deep);
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.floating-contact-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .floating-contacts {
    bottom: 1.5rem;
    left: 1.5rem;
    gap: 0.5rem;
  }
  .floating-contact-btn {
    width: 40px;
    height: 40px;
  }
  .floating-contact-btn svg {
    width: 18px;
    height: 18px;
  }
}

