/* ===========================
   STABLE DRUMS — pages.css
   Inner-page (non-home) styles
   =========================== */

/* ── PAGE HERO ─────────────────────── */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--dark);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(26,22,18,0.92) 35%, rgba(26,22,18,0.6) 100%),
    url('/images/hero_bg_clean.png') center/cover no-repeat;
}
.page-hero-content {
  position: relative; z-index: 2;
  color: var(--white);
}
.page-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.page-subtitle {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  font-weight: 300;
}

/* ── PAGE CONTENT ──────────────────── */
.page-content { padding: 80px 0 100px; }

.prose {
  max-width: 760px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  position: relative;
}
.prose h2:first-child { margin-top: 0; }
.prose h2::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 36px; height: 3px; background: var(--orange);
}
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 22px 0; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: ''; position: absolute;
  left: 0; top: 11px; width: 10px; height: 2px;
  background: var(--orange);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--orange); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.prose a:hover { border-color: var(--orange); }

/* ── CATEGORY TABS (products page) ─── */
.cat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
}
.cat-tab {
  padding: 14px 28px;
  background: none; border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem; letter-spacing: 0.14em;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.cat-tab:hover { color: var(--text); }
.cat-tab.active { color: var(--text); }
.cat-tab.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--orange);
}
.cat-section { display: none; }
.cat-section.active { display: block; }

/* ── PRODUCT DETAIL ────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.product-gallery { }
.product-main-wrap {
  background: var(--white);
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.product-main-img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 32px;
  transition: opacity 0.25s;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.thumb-btn {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 0;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.thumb-btn:hover { border-color: var(--orange-light); }
.thumb-btn.active { border-color: var(--orange); }

.product-info-detail { padding-top: 8px; }
.product-category-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.product-title-large {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}
.product-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.product-desc-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.product-specs {
  margin-bottom: 32px;
}
.product-specs h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem; letter-spacing: 0.14em;
  margin-bottom: 16px;
  position: relative; padding-bottom: 10px;
}
.product-specs h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--orange);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.spec-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}
.spec-table td:last-child {
  color: var(--text);
}
.product-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── DEALERS ───────────────────────── */
.dealers-intro {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 56px;
}
.dealers-intro strong { color: var(--text); }
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dealer-card {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.dealer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.dealer-logo-wrap {
  width: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.dealer-logo-placeholder {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--orange);
}
.dealer-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.dealer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.dealer-info {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.dealer-info strong {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.dealer-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.2s;
}
.dealer-link:hover { gap: 14px; }

/* ── SUPPORT / FAQ ─────────────────── */
.support-banner {
  background: var(--dark);
  color: var(--white);
  padding: 48px 56px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.support-banner::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--orange);
}
.support-banner-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.support-banner-icon svg {
  width: 100%; height: 100%;
  stroke: var(--orange); fill: none; stroke-width: 1.5;
}
.support-banner-text h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem; letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: var(--white);
}
.support-banner-text p {
  font-size: 0.92rem; line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.support-faq { max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none; border: none;
  padding: 22px 0;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--orange); }
.faq-arrow {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-arrow svg {
  width: 100%; height: 100%;
  stroke: var(--orange); fill: none; stroke-width: 2.5;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 0 24px 0;
}

/* ── CONTACT ───────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info > p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 22px; height: 22px;
  margin-top: 4px;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 100%; height: 100%;
  stroke: var(--orange); fill: none; stroke-width: 1.5;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-detail-text span {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-form-wrap {
  background: var(--white);
  padding: 48px 44px;
  border: 1px solid var(--border);
}
.contact-form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  position: relative; padding-bottom: 12px;
}
.contact-form-wrap h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px; background: var(--orange);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  border: 2px solid var(--border);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-group select { cursor: pointer; }

/* ── RESPONSIVE ────────────────────── */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 110px 0 60px; }
  .page-content { padding: 56px 0 80px; }
  .cat-tabs { flex-wrap: wrap; gap: 0; }
  .cat-tab { padding: 12px 20px; font-size: 0.8rem; }
  .dealers-grid { grid-template-columns: 1fr; }
  .support-banner { padding: 32px 24px; grid-template-columns: 1fr; gap: 20px; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Lightbox ──────────────────────── */
.product-main-img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 18, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  background: var(--white);
  padding: 24px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  stroke-width: 2;
}
.lightbox-close:hover svg { stroke: var(--orange); }