/* ==============================
   assets/css/responsive.css
   Mobile-first responsive overrides
   ============================== */

/* Mobile Nav Panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav-inner {
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  background: none;
  text-align: left;
  width: 100%;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mobile-nav-link:hover { color: var(--color-secondary); }
.mobile-arrow { font-size: 1.2rem; transition: transform .25s; }
.mobile-nav-group.open .mobile-arrow { transform: rotate(90deg); }
.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-sm);
}
.mobile-nav-group.open .mobile-nav-sub { max-height: 600px; }
.mobile-nav-sub a {
  display: block;
  padding: 10px 20px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-nav-sub a:hover { color: var(--color-secondary); }
.mobile-nav-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 992px) {
  .mobile-nav { display: block; }
  body.nav-open { overflow: hidden; }
}

/* Sticky header condensed */
#site-header.scrolled .header-main { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

/* Product gallery */
.product-gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-gallery-thumb.active { border-color: var(--color-secondary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Page hero (inner pages) */
.page-hero-inner {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-inner::before {
  content:'';
  position:absolute;
  inset:0;
  background-image: linear-gradient(rgba(200,150,12,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200,150,12,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-inner h1 { color: #fff; position: relative; }
.page-hero-inner p  { color: rgba(255,255,255,.7); max-width: 620px; margin: 16px auto 0; position: relative; }

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.spec-table tr:nth-child(even) td { background: var(--color-bg); }
.spec-table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.spec-table td:first-child {
  font-weight: 700;
  color: var(--color-primary);
  width: 40%;
  background: #f0f3f7;
}

/* Widget sidebar */
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-secondary);
}
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
}
.widget ul li:last-child { border: none; }
.widget ul li a { color: var(--color-text); }
.widget ul li a:hover { color: var(--color-secondary); padding-left: 4px; }
.widget ul li .count {
  float: right;
  background: var(--color-bg);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: .75rem;
  color: var(--color-text-light);
}

/* Page content styling */
.entry-content h2 { margin: 40px 0 16px; }
.entry-content h3 { margin: 28px 0 12px; }
.entry-content p  { margin-bottom: 18px; line-height: 1.8; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; line-height: 1.7; }
.entry-content a  { color: var(--color-secondary); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 16px 20px;
  background: var(--color-bg);
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* Timeline */
.timeline { position: relative; padding: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-secondary);
}
.timeline-item { position: relative; padding: 0 0 32px 56px; }
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.timeline-year { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-secondary); font-weight: 700; }
.timeline-desc { font-size: .9rem; color: var(--color-text-light); margin-top: 4px; }

/* Download center */
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
  text-decoration: none;
}
.download-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.download-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.download-icon svg { color: var(--color-secondary); }
.download-info h5 { font-size: .9rem; margin-bottom: 4px; }
.download-info p  { font-size: .78rem; color: var(--color-text-light); margin: 0; }
.download-arrow { margin-left: auto; color: var(--color-secondary); }

/* Form error state */
.form-group .form-error {
  font-size: .78rem;
  color: var(--color-accent);
  margin-top: 4px;
  display: none;
}
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--color-accent);
  background: #fff5f5;
}
.form-group.has-error .form-error { display: block; }
.form-group.has-success .form-input,
.form-group.has-success .form-select {
  border-color: var(--color-success);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 48px 0 0;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Print override */
@media print {
  .float-inquiry, .cookie-banner, .back-to-top, .mobile-nav { display: none !important; }
}
