/* Crucial vendor page (partner/crucial.php) */

:root {
  --color-crucial: #0092c8;
  --color-crucial-dark: #007aaa;
  --cru-navy: #0f1e45;
  --cru-ink: #14213d;
  --cru-muted: #51607a;
  --cru-light: #f3f7fb;
  --cru-line: #dfe7f0;
  --cru-radius: 16px;
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.vendor-color {
  color: var(--color-crucial);
}

.bg-vendor-color {
  background-color: var(--color-crucial);
}

.cru-page p {
  font-size: 1rem;
  line-height: 1.7;
}

.cru-page h2 {
  color: var(--cru-ink);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.cru-page h3 {
  color: var(--cru-ink);
  font-weight: 700;
}

.cru-section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
  background: #fff;
  scroll-margin-top: 80px;
}

.cru-light {
  background: var(--cru-light);
}

.cru-page .cru-section > .container > h2,
.cru-page .cru-feature h2 {
  position: relative;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
}

.cru-page .cru-section > .container > h2::after,
.cru-page .cru-feature h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--color-crucial);
}

.cru-page .cru-lead {
  color: var(--cru-ink);
  font-size: 1.2rem;
  font-weight: 600;
}

.cru-page .cru-section p {
  color: var(--cru-muted);
}

/* buttons */
.cru-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-crucial);
  border-radius: 8px;
  background: var(--color-crucial);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cru-btn:hover,
.cru-btn:focus-visible {
  border-color: var(--color-crucial-dark);
  background: var(--color-crucial-dark);
  color: #fff;
}

.cru-btn:focus-visible {
  outline: 3px solid rgba(0, 146, 200, 0.35);
  outline-offset: 3px;
}

.cru-btn-ghost {
  background: transparent;
  color: var(--color-crucial);
}

.cru-btn-ghost:hover,
.cru-btn-ghost:focus-visible {
  border-color: var(--color-crucial);
  background: var(--color-crucial);
  color: #fff;
}

.cru-btn-white {
  border-color: #fff;
  background: #fff;
  color: var(--color-crucial);
}

.cru-btn-white:hover,
.cru-btn-white:focus-visible {
  border-color: var(--color-crucial);
  background: var(--color-crucial);
  color: #fff;
}

/* hero */
.cru-hero {
  position: relative;
  min-height: 360px;
  background: #0b1a33;
}

.cru-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 440px;
  object-fit: cover;
  filter: brightness(55%);
}

.cru-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(8, 18, 40, 0.75) 0%, rgba(8, 18, 40, 0.2) 70%);
  color: #fff;
}

.cru-page .cru-hero h1 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cru-page .cru-hero p {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.92);
}

.cru-page .cru-hero p.fs-5 {
  font-weight: 600;
}

/* announcement */
.cru-notice {
  padding: 1.75rem 0;
  border-top: 3px solid #f59e0b;
  border-bottom: 1px solid #fde68a;
  background: #fffbeb;
}

.cru-notice-inner {
  display: flex;
  gap: 1.1rem;
}

.cru-notice-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef3c7;
  color: #d97706;
  font-size: 1.15rem;
}

.cru-page .cru-notice p {
  margin-bottom: 0.5rem;
  color: #78350f;
  font-size: 0.93rem;
  line-height: 1.6;
}

.cru-page .cru-notice p.fw-bold {
  color: #92400e;
  font-size: 1.02rem;
}

.cru-page .cru-notice p:last-child {
  margin-bottom: 0;
}

/* category cards */
.cru-cat {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: var(--cru-radius);
  background: #0b1a33;
}

.cru-cat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(62%);
  transition: filter 0.35s ease, transform 0.45s ease;
}

.cru-cat:hover img {
  filter: brightness(42%);
  transform: scale(1.07);
}

.cru-cat-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.cru-page .cru-cat h3 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

/* product cards */
.cru-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--cru-line);
  border-radius: var(--cru-radius);
  background: #fff;
  transition: border-color 0.25s;
}

.cru-card:hover {
  border-color: var(--color-crucial);
}

.cru-card .img-wrapper {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 140px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.cru-card .img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.cru-card:hover .img-wrapper img {
  transform: scale(1.06);
}

.cru-page .cru-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  text-align: center;
}

.cru-page .cru-card p {
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid #eef2f7;
  color: var(--cru-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cru-page .cru-card p:last-of-type {
  margin-bottom: 1.25rem;
}

.cru-card .cru-btn {
  align-self: center;
  margin-top: auto;
}

/* feature rows */
.cru-feature {
  padding: 4.5rem 0;
  scroll-margin-top: 80px;
}

.cru-feature-img {
  display: block;
  width: 100%;
  max-width: 460px;
  max-height: 320px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--cru-line);
  border-radius: var(--cru-radius);
  background: #fff;
  object-fit: contain;
}

.cru-feature > .container > .row p {
  color: var(--cru-muted);
  font-size: 1rem;
}

.cru-feature .cru-btn {
  margin-top: 1.5rem;
}

.cru-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  object-fit: contain;
}

.cru-page .cru-icon-caption {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* specs */
.cru-spec-wrap {
  overflow: hidden;
  border: 1px solid var(--cru-line);
  border-radius: var(--cru-radius);
  background: #fff;
}

.cru-spec-wrap table {
  margin: 0;
}

.cru-spec-wrap td {
  padding: 0.8rem 1.1rem;
  border-color: var(--cru-line);
  font-size: 0.95rem;
  vertical-align: middle;
}

.cru-spec-wrap td:first-child {
  width: 220px;
  background: var(--cru-light);
  color: var(--color-crucial);
}

.cru-spec-wrap tbody tr:hover td {
  background-color: rgba(0, 146, 200, 0.06);
}

.cru-page h3.cru-spec-title {
  font-size: 1.5rem;
  font-weight: 800;
}

/* closing band */
.cru-cta {
  padding: 4.5rem 0;
  background:
    radial-gradient(50% 140% at 90% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 65%),
    linear-gradient(135deg, var(--color-crucial) 0%, #00597a 100%);
  color: #fff;
  text-align: center;
}

.cru-page .cru-cta h2 {
  color: #fff;
}

.cru-page .cru-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.cru-cta .cru-btn {
  border-color: #fff;
  background: #fff;
  color: var(--color-crucial);
}

.cru-cta .cru-btn:hover,
.cru-cta .cru-btn:focus-visible {
  border-color: var(--cru-navy);
  background: var(--cru-navy);
  color: #fff;
}

@media (max-width: 767px) {

  .cru-section,
  .cru-feature,
  .cru-cta {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .cru-hero,
  .cru-hero-img {
    min-height: 280px;
  }

  .cru-spec-wrap td:first-child {
    width: 130px;
  }

  .cru-notice-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .cru-btn,
  .cru-card,
  .cru-cat img,
  .cru-card .img-wrapper img {
    transition: none;
  }

  .cru-cat:hover img,
  .cru-card:hover .img-wrapper img {
    transform: none;
  }
}

/* Hero logo */
.cru-hero-logo {
  display: block;
  width: auto;
  height: 44px;
  margin: 0 0 1.5rem;
}

