/* =================================================================== */
/* PAGES — Styles specific to Products, Product Detail, About pages.   */
/* =================================================================== */

/* =============== PRODUCTS LIST =============== */
.product-filter-bar {
  padding: 32px 0 8px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.products-section { padding: 48px 0 96px; background: var(--bg-light); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Help choose CTA --- */
.help-choose {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2418 100%);
  color: var(--white);
}
.help-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.help-text { flex: 1; min-width: 280px; }
.help-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.help-text h2 em { color: var(--gold); font-style: italic; }
.help-text p {
  color: rgba(255,255,255,.7);
  max-width: 560px;
  font-size: 16px;
}

/* =============== PRODUCT DETAIL =============== */
.product-hero { padding: 60px 0 40px; background: var(--white); }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-hero-media { position: sticky; top: 100px; }

.media-main {
  aspect-ratio: 1/1;
  background: #0f0f0f;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
  cursor: zoom-in;
}
.media-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 32px;
  box-sizing: border-box;
  display: block;
}
.media-fallback {
  position: absolute; inset: 0;
  display: none;           /* Hidden by default, shown by onerror if image fails */
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.media-fallback svg { width: 100%; height: auto; max-height: 320px; }

.media-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: border-color .2s;
}
.thumb:hover { border-color: var(--gold); }
.thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,169,97,.35); }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  display: block;
}
.thumb-fallback {
  position: absolute; inset: 0;
  display: none;           /* Hidden by default, shown by onerror if image fails */
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}
.thumb-fallback svg { width: 100%; height: auto; }

.product-hero-info { padding-top: 12px; }
.product-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-top: 12px;
  margin-bottom: 8px;
}
.product-h1-sub {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.product-h1-tagline {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.product-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-highlights li {
  font-size: 15px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.product-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.product-cta-row {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.product-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
}

/* --- Tabs & panels --- */
.product-tabs-section {
  background: var(--bg-light);
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.overview-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.overview-aside {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
}
.overview-aside h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.overview-aside h4:not(:first-child) { margin-top: 22px; }
.overview-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview-aside li {
  font-size: 14px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}
.overview-aside li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* --- Specs table (product detail variant) --- */
.product-tabs-section .specs-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 860px;
}
.product-tabs-section .specs-table td {
  padding: 16px 24px;
  font-size: 15px;
}

/* --- Downloads --- */
.downloads-list { max-width: 720px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--dark);
  transition: all .2s;
}
.download-item:hover { border-color: var(--gold); transform: translateX(4px); }
.download-item svg { color: var(--gold); flex-shrink: 0; }
.download-item div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.download-item strong { font-size: 15px; font-weight: 600; }
.download-item span { font-size: 12px; color: var(--muted); }
.download-size { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.download-note { font-size: 13px; color: var(--muted); margin-top: 20px; }
.download-note a { color: var(--gold); }

/* --- Related products --- */
.related-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.related-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--dark);
  margin-bottom: 32px;
}

/* --- Project CTA --- */
.project-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  color: var(--white);
  text-align: center;
}
.project-cta-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 14px;
}
.project-cta-inner h2 em { color: var(--gold); font-style: italic; }
.project-cta-inner p {
  color: rgba(255,255,255,.7);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 30px;
}
.project-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =============== ABOUT PAGE =============== */
.about-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201,169,97,.14) 0%, transparent 60%),
    linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}
.about-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.about-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.about-hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.about-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  max-width: 680px;
  margin: 0 auto;
}

/* --- Our Story --- */
.about-story { padding: 96px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: start;
}
.story-copy .page-eyebrow { margin-bottom: 14px; }
.story-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 44px);
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 28px;
}
.story-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}
.story-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-block {
  background: var(--white);
  padding: 32px 28px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num span {
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
  margin-left: 2px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 500;
}

/* --- Capabilities grid --- */
.about-caps { padding: 96px 0; }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cap-card {
  background: var(--white);
  padding: 36px 28px 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all .3s;
  position: relative;
}
.cap-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.cap-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 500;
}
.cap-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
}
.cap-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Certifications --- */
.about-certs { padding: 96px 0; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.cert-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  transition: all .25s;
}
.cert-block:hover { border-color: var(--gold); transform: translateY(-2px); }
.cert-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--dark);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.cert-desc {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

/* --- Markets section --- */
.about-markets { padding: 100px 0; }
.markets-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.markets-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  line-height: 1.15;
  margin: 16px 0 22px;
}
.markets-copy h2 em { color: var(--gold); font-style: italic; }
.markets-copy p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 560px;
}
.markets-regions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.region {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,169,97,.15);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all .3s;
}
.region:hover {
  border-color: var(--gold);
  background: rgba(201,169,97,.06);
}
.region-flag { font-size: 32px; margin-bottom: 10px; }
.region-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 6px;
}
.region-stat {
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
  font-family: var(--serif);
}
.region-stat span {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-left: 4px;
  font-family: 'Inter', sans-serif;
}

/* --- Principles --- */
.about-principles { padding: 96px 0; }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.principle { text-align: left; }
.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 400;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}
.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-hero-media { position: static; }
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .markets-grid { grid-template-columns: 1fr; gap: 48px; }
  .help-wrap { flex-direction: column; align-items: flex-start; }
  .about-hero { padding: 130px 0 70px; }
}

@media (max-width: 640px) {
  .story-stats { grid-template-columns: 1fr; }
  .markets-regions { grid-template-columns: 1fr; }
  .stat-num { font-size: 40px; }
  .product-cta-row { flex-direction: column; }
  .product-cta-row a { width: 100%; justify-content: center; }
  .project-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .project-cta-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* =============== PRODUCT GALLERY SECTION =============== */
.pd-gallery-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pd-gallery-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}
.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pd-gallery-fig {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.pd-gallery-fig img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #111;
  transition: transform .4s ease;
}
.pd-gallery-fig:hover img { transform: scale(1.02); }
.pd-gallery-fig figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
}
