/*
 * Product sections from the 2026-11 artwork (refs/):
 * - Videotelemetria (/video)
 * - Rastreador portátil and TAG (/carro, page "Rastreamento")
 * Loaded only by the pages that use them.
 */

:root {
  --sp-navy: #0d1d34;
  --sp-blue: #01acf1;
  --sp-blue-dark: #005da7;
  --sp-check: #0460a9;
  --sp-text: #5b6b80;
  --sp-border: #14a6e2;
  --sp-card: #f3f6fb;
  --sp-card-line: #e1e8f1;
  --sp-icon-bg: #dceefa;
}

.sp-section {
  padding: 64px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.sp-section + .sp-section {
  padding-top: 24px;
}

/* Intro of the "Adicionais" block on /carro */
.sp-section--intro {
  padding-bottom: 8px;
  background: #fff;
}

/* Pill with two halo rings (reference: pill with rings, in the Satcom palette) */
.sp-tag-label {
  display: inline-block;
  margin: 14px 0 34px;
  padding: 8px 24px 8px 30px; /* extra left: letter-spacing adds space after the last letter */
  border-radius: 999px;
  background: #00a4e3; /* Satcom light blue */
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  box-shadow:
    0 0 0 6px rgba(0, 164, 227, 0.30),  /* inner ring */
    0 0 0 12px rgba(0, 164, 227, 0.14), /* outer ring */
    0 0 32px 14px rgba(0, 75, 153, 0.12); /* soft glow, Satcom blue */
}

.sp-intro-title {
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--sp-navy);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 36px;
}

.sp-intro-text {
  max-width: 920px; /* one line on desktop */
  margin: 0 auto;
  color: var(--sp-text);
  font-size: 18px;
}

@media (max-width: 767.98px) {
  .sp-intro-title {
    font-size: 28px;
  }

  .sp-intro-text {
    font-size: 16px;
  }
}

/* Eyebrow: "—— RASTREADOR PORTÁTIL SATCOM" */
.sp-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--sp-blue);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.sp-eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  margin-right: 16px;
  background: var(--sp-blue);
  flex-shrink: 0;
}

/* Eyebrow without the line (/video hero) */
.sp-eyebrow--plain::before {
  display: none;
}

.sp-headline {
  margin-bottom: 16px;
  text-align: left;
  color: var(--sp-navy);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.12;
}

.sp-headline span {
  display: block;
  color: #004b99; /* Satcom blue, second line of the headlines */
}

/* Rastreamento page add-ons: section header (eyebrow, headline, text) centered */
#adicionais .sp-eyebrow {
  justify-content: center;
}

#adicionais .sp-eyebrow::after {
  content: '';
  width: 40px;
  height: 2px;
  margin-left: 16px;
  background: var(--sp-blue);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  #adicionais .sp-eyebrow::after {
    width: 28px;
    margin-left: 12px;
  }
}

#adicionais .sp-headline {
  text-align: center;
}

/* Rastreamento page add-ons: card titles and texts centered */
#adicionais .sp-card-title,
#adicionais .sp-card-text {
  text-align: center;
}

#adicionais .sp-sub {
  margin-right: auto;
  margin-left: auto;
  max-width: 820px; /* one line on desktop */
  text-align: center;
}

.sp-sub {
  max-width: 620px;
  margin-bottom: 40px;
  color: var(--sp-text);
  font-size: 20px;
  line-height: 1.5;
}

/* Highlighted card with blue border */
.sp-highlight {
  margin-bottom: 32px;
  padding: 40px 48px;
  border: 2px solid var(--sp-border);
  border-radius: 28px;
  background: linear-gradient(135deg, #f2f7fd 0%, #e9f3fc 100%);
}

.sp-highlight-title {
  margin-bottom: 8px;
  text-align: left;
  color: var(--sp-blue-dark);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 34px;
}

.sp-highlight-text {
  margin-bottom: 24px;
  color: var(--sp-text);
  font-size: 18px;
}

.sp-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-checks li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--sp-navy);
  font-size: 18px;
  font-weight: 500;
}

.sp-checks li:last-child {
  margin-bottom: 0;
}

.sp-checks .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--sp-check);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.sp-checks--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.sp-checks--grid li {
  margin-bottom: 0;
}

.sp-product-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 340px;
  margin: 0 auto;
}

/* Cameras image with the two labels under it */
.sp-cameras img {
  display: block;
  width: 100%;
  height: auto;
}

.sp-cameras-labels {
  display: flex;
  margin-top: 12px;
  color: var(--sp-blue-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
}

.sp-cameras-labels span {
  flex: 1;
}

/* /video: "Câmera embarcada" card centered */
#videotelemetria .sp-highlight-title {
  text-align: center;
}

@media (min-width: 768px) {
  /* the two columns of checks stay aligned, the block is centered */
  #videotelemetria .sp-checks--grid {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
  }
}

/* Section title with a line: "FUNCIONALIDADES ————" */
.sp-divider-title {
  display: flex;
  text-align: left;
  align-items: center;
  margin: 16px 0 24px;
  color: var(--sp-blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

/* Centered, with a line on each side: "———— FUNCIONALIDADES ————" */
.sp-divider-title::before,
.sp-divider-title::after {
  content: '';
  height: 1px;
  background: var(--sp-card-line);
  flex: 1;
}

.sp-divider-title::before {
  margin-right: 24px;
}

.sp-divider-title::after {
  margin-left: 24px;
}

/* Small cards (features, app screens) */
.sp-card {
  position: relative;
  height: 100%;
  padding: 32px 28px;
  border: 1px solid var(--sp-card-line);
  border-radius: 24px;
  background: var(--sp-card);
}

.sp-card--featured {
  /* same stroke as the plain cards (Telemetria) */
  background: linear-gradient(180deg, #f2f7fd 0%, #eef6fd 100%);
}

/* /video: Telemetria card gets the same background as DMS and ADAS */
#videotelemetria .sp-card {
  background: linear-gradient(180deg, #f2f7fd 0%, #eef6fd 100%);
}

.sp-card-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--sp-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.sp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--sp-icon-bg);
  color: var(--sp-blue-dark);
  font-size: 30px;
}

.sp-card-title {
  margin-bottom: 8px;
  text-align: left;
  color: var(--sp-blue-dark);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 26px;
}

.sp-card-text {
  margin-bottom: 20px;
  color: var(--sp-text);
  font-size: 17px;
  line-height: 1.5;
}

.sp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-pill {
  padding: 8px 18px;
  border: 1px solid var(--sp-card-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sp-navy);
  font-size: 15px;
  font-weight: 500;
}

/* App screen cards: the phone is cut by the bottom of the card */
.sp-card--phone {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}

.sp-card--phone .sp-card-text {
  margin-bottom: 24px;
}

.sp-card--phone img {
  display: block;
  height: auto;
  width: 70%;
  max-width: 240px;
  margin: auto auto 0;
}

.sp-card--anything {
  display: flex;
  flex-direction: column;
}

.sp-card--anything img {
  display: block;
  height: auto;
  width: 45%;
  max-width: 150px;
  margin: auto auto 20px;
}

.sp-card--anything .sp-pills {
  justify-content: center;
}

.sp-cta {
  margin-top: 16px;
  text-align: center;
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
  .sp-headline {
    font-size: 36px;
  }

  .sp-highlight {
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  .sp-section {
    padding: 40px 0;
  }

  .sp-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .sp-eyebrow::before {
    width: 28px;
    margin-right: 12px;
  }

  .sp-headline {
    font-size: 30px;
  }

  .sp-sub {
    margin-bottom: 28px;
    font-size: 17px;
  }

  .sp-highlight {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .sp-highlight-title {
    font-size: 28px;
  }

  .sp-checks li {
    font-size: 16px;
  }

  .sp-checks--grid {
    grid-template-columns: 1fr;
  }

  .sp-product-img {
    max-height: 240px;
    margin-top: 28px;
  }

  .sp-cameras-labels {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .sp-card {
    padding: 28px 22px;
  }

  .sp-card--phone {
    padding-bottom: 0;
  }
}

/* /video header: product banner + tags, same concept as /carro and /frota */
.vt-logo {
  display: inline-block;
  padding: 6px 34px;
  background: #014b99;
  border-radius: 10px;
  transform: skewX(-12deg);
}

.vt-logo span {
  display: block;
  transform: skewX(12deg);
  color: #fff;
  font-family: "proxima_nova_rgbold", Arial, Helvetica, sans-serif;
  font-size: 54px;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.vt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 0;
  list-style: none;
}

.vt-tags li {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px 3px 6px;
  background: #045ba7;
  border-radius: 999px;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.vt-tags li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: #28aae1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.vt-hero {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .vt-logo span {
    font-size: 38px;
  }

  .vt-tags li {
    font-size: 15px;
  }
}

/* Mobile: banner spans the full width, like the /frota logo */
@media (max-width: 767px) {
  .vt-logo {
    display: block;
    padding: 4px 12px;
    text-align: center;
  }

  .vt-logo span {
    font-size: 9.2vw;
  }
}
