/* ========================================
   CONTROLHUB SMART CONTROL SOLUTION PAGE
======================================== */

.controlhub-page {
  background: var(--white);
  padding-top: 100px;
}

.controlhub-hero {
  padding: 1.4rem 0 4rem;
}

.controlhub-title {
  font-size: clamp(2.2rem, 4.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--brand);
  margin: 1rem 0 0.9rem;
  max-width: 680px;
}

.controlhub-copy {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 0;
}

.controlhub-note {
  border-left: 4px solid var(--brand);
  color: var(--brand);
  background: var(--brand-3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.85rem 1rem;
  margin: 1.35rem 0 0;
  font-weight: 700;
}

.controlhub-hero-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-gradient);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.controlhub-hero-img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: var(--white);
}

.controlhub-hero-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.controlhub-hero-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--brand);
  padding: 0.85rem;
  font-weight: 800;
}

.controlhub-final-cta {
  padding: 1rem 0 5rem;
}

.controlhub-flow-section,
.controlhub-setup-section {
  background: var(--bg-panel);
}

.controlhub-flow-grid,
.package-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.control-step-card,
.package-card,
.controlhub-app-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.control-step-card h3,
.package-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 0.45rem;
}

.control-step-card p,
.package-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.controlhub-process-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #f7fbfd 0%, #eef8fb 100%);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.controlhub-process-steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.8rem;
  min-width: 0;
}

.process-pill {
  border: 1px solid rgba(28, 137, 157, 0.16);
  border-radius: 22px;
  background: #fdfdfd;
  color: var(--brand);
  padding: 1.35rem 1.5rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(22, 74, 90, 0.06);
}

.controlhub-process-steps i {
  align-self: center;
  color: var(--brand);
  font-size: 1.35rem;
  line-height: 1;
}

.controlhub-process-image {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 74, 90, 0.08);
  padding: 1.25rem;
  min-width: 0;
}

.controlhub-process-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.controlhub-phone-placeholder {
  min-height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 2rem;
}

.controlhub-phone-placeholder i {
  color: var(--brand);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.controlhub-phone-placeholder strong {
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 800;
}

.controlhub-phone-placeholder span,
.controlhub-app-note {
  color: var(--muted);
  line-height: 1.7;
}

.controlhub-app-note {
  margin: 1rem 0 0;
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.controlhub-required-row {
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.controlhub-required-label {
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.controlhub-quantity-stepper {
  display: grid;
  grid-template-columns: 42px minmax(64px, 1fr) 42px;
  gap: 0.45rem;
}

.controlhub-quantity-stepper button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.controlhub-quantity-stepper button:hover,
.controlhub-quantity-stepper button:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.controlhub-page .config-summary-card {
  position: sticky;
  top: 110px;
}

.controlhub-outputs-section,
.controlhub-technical-section {
  background: var(--bg-panel);
}

.controlhub-output-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.output-card,
.use-case-card,
.technical-video-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.output-card h3,
.use-case-card h3 {
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}

.output-card p,
.use-case-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.use-case-card img,
.use-case-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.use-case-media-office {
  background:
    linear-gradient(135deg, rgba(10, 63, 81, 0.12), rgba(21, 154, 184, 0.2)),
    url('https://smartsensordevices.com/wp-content/uploads/2026/01/smarthub-banner.webp')
      center / contain no-repeat,
    var(--white);
}

.technical-video-placeholder {
  min-height: 320px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 2rem;
}

.technical-video-placeholder i {
  color: var(--brand);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.technical-video-placeholder strong {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 800;
}

.technical-video-placeholder span {
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================
   CONTROLHUB STANDALONE PRODUCT PAGE
======================================== */

.controlhub-product-page .controlhub-product-hero-card {
  margin-top: 0;
}

.controlhub-product-tags {
  margin-top: 1.35rem;
}

.controlhub-product-page .controlhub-phone-placeholder {
  min-height: 420px;
  padding: 1rem;
}

.controlhub-product-page .controlhub-phone-placeholder img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.controlhub-related-link {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
  margin: 1.1rem 0 0;
}

.controlhub-related-link a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.controlhub-related-link a:hover,
.controlhub-related-link a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .controlhub-flow-grid,
  .package-card-grid,
  .controlhub-process-showcase {
    grid-template-columns: 1fr;
  }

  .controlhub-page .config-summary-card {
    position: static;
  }

  .controlhub-output-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .controlhub-title {
    font-size: 2.35rem;
  }

  .controlhub-hero-card {
    padding: 1.2rem;
  }

  .controlhub-hero-flow {
    grid-template-columns: 1fr;
  }

  .controlhub-process-showcase {
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .process-pill {
    border-radius: 18px;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .controlhub-process-image {
    border-radius: 18px;
    padding: 0.85rem;
  }

  .controlhub-output-grid {
    grid-template-columns: 1fr;
  }
}
