/* ============================================================
   ZEELCHEM™ Pages — Page-Specific Styles
   ============================================================ */

/* ── HERO SECTION ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(13, 27, 42, 0.85) 50%,
    rgba(10, 22, 40, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
  letter-spacing: var(--tracking-wide);
}

.hero-label svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-trust {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
}

/* ── PAGE HERO (Inner Pages) ── */
.page-hero {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: var(--gradient-glow-cyan);
  pointer-events: none;
}

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

.page-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--text-lg);
  max-width: 700px;
}

/* ── PRODUCT CATALOGUE PAGE ── */
.product-catalogue-header {
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .product-catalogue-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.product-results-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── PRODUCT DETAIL PAGE ── */
.product-hero {
  background: var(--gradient-hero);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.product-hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .product-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.product-hero-info {
  flex: 1;
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.product-code-display {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
}

.product-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.quick-spec {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.quick-spec-label {
  color: var(--color-text-muted);
}

.quick-spec-value {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  font-family: var(--font-mono);
}

.product-hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Product Content Sections */
.product-section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.product-section:last-child {
  border-bottom: none;
}

.product-section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-section-title svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* Application List */
.application-list {
  display: grid;
  gap: var(--space-sm);
}

.application-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.application-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.benefit-text h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2xs);
}

.benefit-text p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Dosage Table */
.dosage-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dosage-table thead th {
  background: var(--color-primary-glow);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary-light);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.dosage-table tbody td {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.dosage-table tbody tr:last-child td {
  border-bottom: none;
}

.dosage-table tbody tr:hover {
  background: var(--color-surface-hover);
}

/* Packaging */
.packaging-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.packaging-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.packaging-tag svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

/* Related Products */
.related-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .related-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── CALCULATOR PAGE ── */
.calculator-module {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.calculator-module h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.calculator-module .calc-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-results {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-accent-glow);
  border-radius: var(--radius-lg);
  display: none;
}

.calc-results.active {
  display: block;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.calc-result-item:last-child {
  border-bottom: none;
}

.calc-result-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.calc-result-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}

/* ── CHEMICAL SELECTOR WIZARD ── */
.wizard {
  max-width: 700px;
  margin: 0 auto;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.wizard-progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.wizard-progress-step.active {
  color: var(--color-accent);
}

.wizard-progress-step.completed {
  color: var(--color-green);
}

.wizard-progress-step .step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
}

.wizard-progress-step.active .step-number {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.wizard-progress-step.completed .step-number {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.wizard-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .wizard-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wizard-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  text-align: left;
}

.wizard-option:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.wizard-option.selected {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.wizard-option svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ── KNOWLEDGE CENTER ── */
.article-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.article-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.article-card-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-snug);
}

.article-card-body h3 a {
  color: var(--color-text-primary);
}

.article-card-body h3 a:hover {
  color: var(--color-accent);
}

.article-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.article-card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── ARTICLE PAGE ── */
.article-content {
  max-width: 800px;
}

.article-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-content p {
  margin-bottom: var(--space-md);
  max-width: none;
}

.article-content ul, .article-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  list-style: disc;
}

.article-content li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-relaxed);
}

.article-content ol {
  list-style: decimal;
}

/* ── ABOUT PAGE ── */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg-primary);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  font-size: var(--text-sm);
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.contact-info-card .contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact-info-card h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xs);
}

.contact-info-card p,
.contact-info-card a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-info-card a:hover {
  color: var(--color-accent);
}

/* ── 404 PAGE ── */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradientFlow 4s ease-in-out infinite;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-page h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.error-page p {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* ── COMPARISON TABLE ── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  display: block;
}

.comparison-table thead th {
  background: var(--color-bg-tertiary);
  padding: var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-align: center;
  border-bottom: 2px solid var(--color-accent-glow);
  min-width: 200px;
  position: sticky;
  top: 0;
}

.comparison-table thead th:first-child {
  text-align: left;
  min-width: 160px;
}

.comparison-table tbody td {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

.comparison-table tbody tr:hover {
  background: var(--color-surface-hover);
}

/* ── SOLUTION CARDS ── */
.solution-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .solution-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.solution-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

.solution-card:nth-child(even) {
  direction: rtl;
}

.solution-card:nth-child(even) > * {
  direction: ltr;
}

.solution-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.solution-card p {
  margin-bottom: var(--space-md);
}

.solution-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.solution-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-green);
  flex-shrink: 0;
}
