/* ==========================================================================
   Page-Specific Styles — Homepage
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  background-color: var(--hero-blue);
  color: var(--slate);
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--lh-hero);
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--slate);
  margin-bottom: var(--space-lg);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual .svg-illustration {
  max-width: 520px;
  max-height: 520px;
  width: 100%;
  height: auto;
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__inner {
    gap: var(--space-xl);
  }

  .hero__visual .svg-illustration {
    max-width: 420px;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual .svg-illustration {
    max-width: 280px;
    max-height: 280px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 2rem;
  }
}

/* ---------- Problem Section ---------- */
.problem .grid--2 {
  gap: var(--space-lg);
}

/* ---------- Solution Section ---------- */
.solution__diagram {
  width: 100%;
  margin-bottom: var(--space-2xl);
}

.solution__diagram .svg-illustration {
  width: 100%;
  height: auto;
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stage {
  position: relative;
  padding-left: 60px;
}

.stage__number {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: var(--text-page);
  font-weight: 700;
  color: var(--teal);
  opacity: 0.6;
  line-height: 1;
}

.stage__title {
  font-family: var(--font-heading);
  font-size: var(--text-subsection);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.stage__text {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
}

.solution__note {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
}

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

/* ---------- Product Variants ---------- */
a.card.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-top: 3px solid var(--teal);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__cta {
  display: inline-block;
  margin-top: auto;
  align-self: center;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-btn);
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
  pointer-events: none;
}

a.card.product-card:hover .product-card__cta {
  background-color: #F0F4F8;
  border-color: var(--teal);
  color: var(--teal);
}

.product-card__visual {
  height: 200px;
  background-color: var(--surface);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(-1 * var(--space-lg));
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.product-card__visual img {
  max-height: 180px;
  width: auto;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-subsection);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.product-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.stat__label {
  font-size: var(--text-micro);
  color: var(--slate-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 2px;
}

.product-card__best-for {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: var(--lh-body);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.product-card__best-for strong {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Heritage ---------- */
.heritage__content {
  max-width: 72ch;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.heritage__content h2 {
  margin-bottom: var(--space-md);
}

.heritage__content p {
  font-size: var(--text-lg);
  margin: 0 auto;
}

.heritage__sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 720px;
  margin: 0 auto;
}

.heritage__sector {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heritage__sector-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xs);
  color: var(--teal);
}

.heritage__sector-icon svg {
  width: 24px;
  height: 24px;
}

.heritage__sector-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--deep-text);
}

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

/* ---------- CTA Band ---------- */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin-bottom: var(--space-sm);
}

.cta-band p {
  margin: 0 auto var(--space-lg);
  font-size: var(--text-lg);
}

/* ---------- Placeholder Page ---------- */
.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.placeholder-page h1 {
  margin-bottom: var(--space-sm);
}

.placeholder-page p {
  color: var(--slate-light);
  font-size: var(--text-lg);
  margin: 0 auto;
}

/* ==========================================================================
   Inner Page Styles
   ========================================================================== */

/* ---------- Page Hero (Light) ---------- */
.page-hero {
  background-color: var(--surface);
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
}

.page-hero__inner {
  max-width: 720px;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--slate);
  max-width: 64ch;
}

/* Page Hero — Teal tint for About and Technology */
.page-hero--teal-tint {
  background-color: var(--teal-tint);
}

.page-hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--teal);
  background-color: rgba(8, 145, 178, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

/* Product hero with visual placeholder */
.page-hero--product .page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.page-hero--product .page-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero--product .svg-illustration {
  width: 100%;
  max-width: 320px;
  height: auto;
}

@media (max-width: 768px) {
  .page-hero--product .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero--product .page-hero__visual {
    margin-top: var(--space-lg);
  }

  .page-hero--product .svg-illustration {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ---------- About Page ---------- */
.sectors--light .heritage__sector-icon {
  background-color: var(--surface);
  border: 1.5px solid var(--teal);
}

.sectors--light .heritage__sector-label {
  color: var(--navy);
}

/* ---------- Products Overview — Comparison Table ---------- */
.comparison-table {
  margin-bottom: var(--space-lg);
  position: relative;
}

.comparison-table table {
  font-size: var(--text-sm);
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  vertical-align: top;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

/* Scroll hint fade on mobile */
@media (max-width: 768px) {
  .comparison-table::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
  }
}

.deployment-note {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* ---------- Product Variant Pages — Spec Grid ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.spec-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  text-align: center;
  transition: box-shadow var(--transition-base),
              transform var(--transition-base),
              border-top-color var(--transition-base);
  box-shadow: 0 2px 8px rgba(15, 43, 76, 0.04);
}

.spec-item:hover {
  box-shadow: 0 8px 24px rgba(15, 43, 76, 0.08);
  transform: translateY(-2px);
}

.spec-item__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  word-break: break-word;
}

.spec-item__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Filtration list on variant pages */
.filtration-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.filtration-list__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-top: 2px;
}

.filtration-list__text {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
}

/* UV-C Callout */
.uvc-callout {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--teal-tint);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.uvc-callout__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xxs);
}

.uvc-callout__text {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
}

/* ---------- Technology Page ---------- */
.tech-stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tech-stage {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.tech-stage__number {
  font-family: var(--font-heading);
  font-size: var(--text-page);
  font-weight: 700;
  color: var(--teal);
  opacity: 0.6;
  line-height: 1;
}

.tech-stage__title {
  font-family: var(--font-heading);
  font-size: var(--text-subsection);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.tech-stage__text {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
}

@media (max-width: 480px) {
  .tech-stage {
    grid-template-columns: 1fr;
  }
}

.standards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.standard-item {
  padding: var(--space-md) var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.standard-item__code {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.standard-item__desc {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: var(--lh-body);
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

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

.contact-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: var(--space-xxs);
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-base);
  color: var(--slate);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .form-note {
  font-size: var(--text-micro);
  color: var(--slate-light);
  margin-top: 2px;
}

.contact-details-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.contact-details-card h3 {
  margin-bottom: var(--space-md);
}

.contact-detail {
  margin-bottom: var(--space-md);
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail__label {
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xxs);
}

.contact-detail__value {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: var(--lh-body);
}

.contact-detail__value a {
  color: var(--slate);
  transition: color var(--transition-fast);
}

.contact-detail__value a:hover {
  color: var(--teal);
}

/* ---------- Inner Page CTA ---------- */
.page-cta {
  text-align: center;
}

.page-cta h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-section);
}

.page-cta .btn {
  margin-bottom: var(--space-sm);
}

.page-cta__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ---------- Content Prose ---------- */
.prose {
  max-width: 72ch;
}

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

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

/* ---------- Section Divider ---------- */
.section-divider {
  display: block;
  width: 72px;
  height: 2px;
  background-color: var(--teal);
  border: none;
  margin: 0 auto;
}

/* ---------- CTA Accent ---------- */
.cta-accent {
  display: block;
  width: 72px;
  height: 2px;
  background-color: var(--teal);
  border: none;
  margin: 0 auto var(--space-md);
}

/* ---------- Compliance Badges ---------- */
.compliance-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  border: 1px solid rgba(8, 145, 178, 0.3);
  background-color: rgba(8, 145, 178, 0.06);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: var(--text-micro);
  font-weight: 500;
}

/* ---------- Industry Cards (About Page) ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.industry-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.industry-card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-xs);
}

.industry-card__icon svg {
  width: 36px;
  height: 36px;
}

.industry-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.industry-card__desc {
  font-size: var(--text-micro);
  color: var(--slate-light);
}

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

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Text Callout (pull-quote) ---------- */
.text-callout {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--teal);
  margin: 40px auto;
  max-width: 600px;
  line-height: 1.4;
}

/* ---------- Technology Page Heading Icons ---------- */
.tech-heading-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-heading-icon__svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.tech-heading-icon h2 {
  margin: 0;
}

@media (max-width: 480px) {
  .tech-heading-icon {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
