/* ThreatConnect vendor page (partner/threatconnect.php) */

:root {
  --color-threatconnect: #00445b;
  --color-threatconnect-dark: #002d3d;
  --thc-night: #001c25;
  --thc-ink: #10202a;
  --thc-muted: #4f6068;
  --thc-light: #f1f5f7;
  --thc-line: #dbe4e8;
  --thc-radius: 16px;
}

body {
  overflow-x: hidden;
}

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

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

.tc-page p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--thc-muted);
}

.tc-page h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tc-page h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.tc-section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
  background: #fff;
}

.tc-light {
  background: var(--thc-light);
}

.tc-title {
  margin-bottom: 2.25rem;
  color: var(--thc-ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
}

/* buttons */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-threatconnect);
  border-radius: 8px;
  background: var(--color-threatconnect);
  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;
}

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

.tc-btn:focus-visible {
  outline: 3px solid rgba(0, 68, 91, 0.35);
  outline-offset: 3px;
}

.tc-btn i {
  font-size: 0.8em;
  transition: transform 0.2s;
}

.tc-btn:hover i {
  transform: translateX(3px);
}

.tc-btn-ghost {
  background: transparent;
  color: var(--color-threatconnect);
}

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

.tc-btn-white {
  border-color: #fff;
  background: #fff;
  color: var(--thc-night);
}

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

/* hero */
.tc-hero {
  padding: 4.5rem 0;
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(124, 194, 188, 0.35) 0%, transparent 65%),
    linear-gradient(135deg, var(--color-threatconnect) 0%, var(--thc-night) 100%);
  color: #fff;
}

.tc-hero h1 {
  max-width: 52rem;
  color: #fff;
}

.tc-gradient-text {
  background: linear-gradient(90deg, #fbd27e 20%, #8bb7ee 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.tc-page .tc-hero h4 {
  max-width: 52rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}

/* gradient cards */
.tc-gcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: 20px;
  color: #fff;
}

.tc-gcard-1 { background: linear-gradient(181deg, #3f8f82 20%, #6cb5ae 100%); }
.tc-gcard-2 { background: linear-gradient(181deg, #e56d3f 20%, #f3b565 100%); }
.tc-gcard-3 { background: linear-gradient(181deg, #2b5170 20%, #6f9bcc 100%); }

.tc-gcard h2 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.tc-page .tc-gcard p {
  flex: 1;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.tc-gcard .tc-btn {
  align-self: flex-start;
}

/* image bands */
.tc-band {
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 4rem 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.tc-band h1,
.tc-band h2 {
  color: #fff;
}

.tc-page .tc-band p {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.tc-band-center {
  text-align: center;
}

.tc-band-center p {
  margin-right: auto;
  margin-left: auto;
}

.tc-band-producer {
  background-image: linear-gradient(rgba(0, 28, 37, 0.62), rgba(0, 28, 37, 0.62)), url('/images/threatconnect/producer-image.jpg');
}

.tc-band-1 { background-image: url('/images/threatconnect/gradients-o-b-1.webp'); }
.tc-band-2 { background-image: url('/images/threatconnect/gradient-b-o.webp'); }
.tc-band-3 { background-image: url('/images/threatconnect/gradients-o-b-2.webp'); }

.tc-band img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

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

.tc-card:hover {
  border-color: var(--color-threatconnect);
}

.tc-light .tc-card {
  background: #fff;
}

.tc-page .tc-card .tc-card-title {
  margin-bottom: 0.6rem;
  color: var(--thc-ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.tc-page .tc-card p.flex-grow-1 {
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
}

.tc-card .tc-btn {
  align-self: flex-start;
}

.tc-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* analyst panel */
.tc-solo {
  padding: 2.5rem;
  border: 1px solid var(--thc-line);
  border-radius: 20px;
  background: #fff;
}

.tc-page .tc-solo .tc-card-title {
  margin-bottom: 1.5rem;
  color: var(--thc-ink);
  font-size: 1.4rem;
  font-weight: 800;
}

.tc-pain {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--thc-line);
}

.tc-page .tc-pain p {
  margin-bottom: 0.9rem;
}

.tc-page .tc-pain p.tc-answer {
  margin: 0;
  padding: 0.9rem 1.25rem;
  border-left: 5px solid var(--color-threatconnect);
  border-radius: 0 10px 10px 0;
  background: var(--thc-light);
  color: var(--thc-ink);
  font-weight: 700;
}

/* closing band */
.tc-cta {
  display: flex;
  align-items: flex-start;
  min-height: 400px;
  padding: 3.5rem 0 9rem;
  background: #eef3f6 url('/images/threatconnect/svg (1).png') center / cover no-repeat;
  text-align: center;
}

.tc-page .tc-cta p {
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  color: var(--thc-ink);
  font-size: 1.15rem;
  font-weight: 700;
}

@media (max-width: 767px) {

  .tc-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .tc-hero,
  .tc-band,
  .tc-cta {
    min-height: 0;
    padding: 3rem 0;
  }

  .tc-solo {
    padding: 1.5rem;
  }
}

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

  .tc-btn,
  .tc-btn i,
  .tc-card {
    transition: none;
  }
}

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