/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --primary: #0a192f;
  --accent: #c5a059;
  --light: #f8f9fa;
  --transition: all 0.4s ease;
  --nav-height: 70px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

/* =============================================
   NAVIGATION BAR
   ============================================= */
.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: #050f23;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-section { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 40px; width: 40px; border: 2px solid var(--accent); border-radius: 50%; object-fit: cover; }
.company-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #fff; letter-spacing: 0.5px; white-space: nowrap; }
.nav-sections { display: flex; gap: 2rem; align-items: center; }
.nav-item {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item:hover, .nav-item.active { color: var(--accent); }
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.language-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
  background: #050f23;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #050f23;
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 120px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 1001;
  border-radius: 4px;
  overflow: hidden;
}
.lang-dropdown.show { display: block; }
.lang-option {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--accent); color: #000; padding-left: 20px; }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  background: linear-gradient(135deg, #0a192f 0%, #152a4a 100%);
  padding: 60px 5% 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-content { position: relative; z-index: 2; }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 10px; }
.page-subtitle { color: var(--accent); font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-container { padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
.product-group {
  margin-bottom: 50px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: var(--transition);
}
.product-group:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.group-header {
  background: var(--primary);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.group-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a192f;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.group-title { font-family: 'Playfair Display', serif; color: #fff; font-size: clamp(1.3rem, 3vw, 1.6rem); flex-grow: 1; }
.group-arrow { color: var(--accent); font-size: 1.2rem; transition: transform 0.3s ease; }
.group-header.open .group-arrow { transform: rotate(180deg); }
.group-products {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}
.group-products.open { max-height: 3000px; padding: 10px 20px 20px; }
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
  flex-wrap: wrap;
  gap: 12px;
}
.product-item:last-child { border-bottom: none; }
.product-item:hover { background: #fafafa; }
.product-name { font-weight: 700; color: var(--primary); font-size: 1rem; flex: 1; min-width: 150px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.download-btn:hover { background: var(--primary); color: #fff; }
.download-btn i { font-size: 0.9rem; }

/* =============================================
   MODAL (Popup Windows)
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover { color: #333; }
.modal-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #0a192f;
  font-size: 1.5rem;
}
.modal-title { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 8px; font-size: 1.4rem; }
.modal-product-name { color: var(--accent); font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }
.modal-options { display: flex; flex-direction: column; gap: 12px; }
.modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.modal-option:hover { border-color: var(--accent); background: #fafafa; }
.modal-option i { color: var(--accent); font-size: 1.2rem; width: 24px; text-align: center; }
.modal-option small { font-weight: 400; font-size: 0.8rem; color: #888; margin-left: auto; }

/* =============================================
   NOT AVAILABLE MESSAGE (When file doesn't exist)
   ============================================= */
.not-available-message { display: none; text-align: center; padding: 25px 20px; }
.not-available-message.show { display: block; }
.not-available-icon { font-size: 3rem; color: #e0a800; margin-bottom: 15px; }
.not-available-text { color: #666; font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a192f;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  cursor: pointer;
}
.contact-link:hover { background: #d4af6a; transform: translateY(-2px); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid #ccc;
  color: #666;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:hover { border-color: #999; color: #333; }

/* =============================================
   DOWNLOAD SPINNER (Loading animation)
   ============================================= */
.download-spinner { display: none; text-align: center; padding: 25px 20px; }
.download-spinner.show { display: block; }
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner-text { color: #666; font-size: 0.95rem; }

/* =============================================
   FOOTER / CONTACT SECTION
   ============================================= */
.contact-section { background: #050f23; color: #fff; padding: 70px 5% 30px; }
.contact-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}
.contact-col h3 { font-family: 'Playfair Display', serif; color: var(--accent); margin-bottom: 20px; font-size: 1.4rem; }
.contact-info-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.contact-info-item i { font-size: 1.1rem; color: var(--accent); width: 24px; text-align: center; }
.contact-info-item p, .contact-info-item a { color: #ddd; text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; }
.contact-info-item a:hover { color: var(--accent); }
.contact-message {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.contact-message p { color: #ccc; line-height: 1.7; font-style: italic; font-size: 0.9rem; }
.footer-line { height: 1px; background: rgba(255,255,255,0.15); margin: 40px auto 20px; max-width: 1000px; }
.footer-copy { text-align: center; font-size: 0.8rem; opacity: 0.6; }

/* =============================================
   RESPONSIVE DESIGN - Tablets & Mobile
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .app-bar { padding: 0 15px; height: var(--nav-height); }
  .mobile-menu-btn { display: block; order: 1; font-size: 1.3rem; }
  .logo-section { order: 0; gap: 8px; }
  .logo-img { height: 32px; width: 32px; }
  .company-name { font-size: 1rem; }
  .language-switcher { order: 2; }
  .lang-btn { padding: 5px 10px; font-size: 0.8rem; }
  .nav-sections {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: #050f23;
    flex-direction: column;
    padding: 20px;
    gap: 0.5rem;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-sections.active { display: flex; }
  .nav-item {
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    width: 100%;
  }
  .nav-item::after { display: none; }
  .group-header { padding: 16px 20px; }
  .group-products.open { padding: 10px 10px 15px; }
  .product-item { flex-direction: column; align-items: flex-start; padding: 14px 10px; }
  .product-actions { width: 100%; }
  .download-btn { flex: 1; justify-content: center; text-align: center; }
  .modal { padding: 25px 20px; margin: 10px; }
  .contact-footer-grid { gap: 30px; }
  .contact-section { padding: 50px 5% 20px; }
}

/* =============================================
   RESPONSIVE DESIGN - Small Phones
   ============================================= */
@media (max-width: 480px) {
  :root { --nav-height: 56px; }
  .company-name { font-size: 0.9rem; }
  .logo-img { height: 28px; width: 28px; }
  .page-header { padding: 40px 5% 30px; }
  .group-icon { width: 38px; height: 38px; font-size: 1rem; }
  .download-btn { padding: 8px 12px; font-size: 0.8rem; }
}

button, a { touch-action: manipulation; }