/**
 * Chery Bolivia Footer — geometry from footer-3.png
 * Proportions measured from reference (content ~2070px):
 *   brand ~31% | info ~16% | chery ~13% | photo ~40%
 */
.chery-premium-footer {
  --cpf-red: #e31c23;
  --cpf-ink: #111111;
  --cpf-muted: #6a6a6a;
  --cpf-link: #4a4a4a;
  --cpf-line: rgba(0, 0, 0, 0.12);
  --cpf-bg: #ffffff;
  --cpf-max: 1190px;
  --cpf-photo: url("https://chery.bo/wp-content/uploads/2026/09/footer-auto.png");
  width: 100%;
  background: var(--cpf-bg);
  color: var(--cpf-ink);
  font-family: inherit;
  box-sizing: border-box;
}

.chery-premium-footer *,
.chery-premium-footer *::before,
.chery-premium-footer *::after {
  box-sizing: border-box;
}

.chery-premium-footer .cpf-inner {
  width: 100%;
  max-width: var(--cpf-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== MAIN: 4 columns matching reference ===== */
.chery-premium-footer .cpf-main {
  display: grid;
  grid-template-columns: 1.15fr 0.58fr 0.48fr 1.5fr;
  align-items: stretch;
  min-height: 420px;
  overflow: hidden;
}

/* ----- Brand column ----- */
.chery-premium-footer .cpf-brand-col {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 28px 40px 0;
  border-right: 1px solid var(--cpf-line);
  background: var(--cpf-bg);
}

.chery-premium-footer .cpf-brands {
  margin: 0 0 22px;
}

.chery-premium-footer .cpf-lockup {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.chery-premium-footer .cpf-about {
  margin: 0 0 28px;
  max-width: 32ch;
  color: var(--cpf-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
}

.chery-premium-footer .cpf-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.chery-premium-footer .cpf-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 180ms ease, transform 180ms ease;
}

.chery-premium-footer .cpf-social-btn:hover {
  background: var(--cpf-red);
  transform: translateY(-1px);
}

/* ----- Nav columns ----- */
.chery-premium-footer .cpf-nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 52px 18px 40px;
  border-right: 1px solid var(--cpf-line);
  background: var(--cpf-bg);
}

.chery-premium-footer .cpf-nav-chery {
  border-right: 0;
  padding-right: 12px;
}

.chery-premium-footer .cpf-nav-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cpf-ink);
  letter-spacing: 0;
}

.chery-premium-footer .cpf-nav-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 10px;
  background: var(--cpf-red);
}

.chery-premium-footer .cpf-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.chery-premium-footer .cpf-nav-list a,
.chery-premium-footer .cpf-nolink {
  color: var(--cpf-link);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.chery-premium-footer .cpf-nav-list a:hover {
  color: var(--cpf-red);
}

.chery-premium-footer .cpf-nolink {
  cursor: default;
  opacity: 0.9;
}

/* ----- Photo column: integrated, soft fade, car on right ----- */
.chery-premium-footer .cpf-visual {
  position: relative;
  z-index: 1;
  min-height: 420px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.chery-premium-footer .cpf-visual-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 175%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right 48%;
  display: block;
  transform: none;
}

.chery-premium-footer .cpf-visual-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 4%,
    rgba(255, 255, 255, 0.92) 14%,
    rgba(255, 255, 255, 0.7) 26%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.1) 52%,
    rgba(255, 255, 255, 0) 64%
  );
}

.chery-premium-footer .cpf-slogan {
  position: absolute;
  left: 12%;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.chery-premium-footer .cpf-slogan p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  line-height: 1.55;
  text-transform: uppercase;
}

.chery-premium-footer .cpf-slogan::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 14px;
  background: var(--cpf-red);
}

/* ----- Legal ----- */
.chery-premium-footer .cpf-legal {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--cpf-line);
  background: var(--cpf-bg);
}

.chery-premium-footer .cpf-legal-left,
.chery-premium-footer .cpf-legal-right {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  color: #777777;
  line-height: 1.4;
}

.chery-premium-footer .cpf-legal-sep {
  margin: 0 6px;
  color: #bbbbbb;
}

.chery-premium-footer .cpf-legal-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #555555;
  white-space: nowrap;
}

.chery-premium-footer .cpf-legal-right::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--cpf-red);
}

/* Elementor chrome — footer only */
.elementor-location-footer .chery-premium-footer-wrap,
.elementor-location-footer .chery-premium-footer-widget,
.elementor-location-footer .elementor-element-cpfhtml1,
.elementor-location-footer .elementor-widget-html,
.elementor-location-footer .e-con,
.elementor-location-footer .e-con-inner {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.elementor-location-footer {
  background: #ffffff !important;
}

@media (max-width: 1024px) {
  .chery-premium-footer .cpf-main {
    grid-template-columns: 1.1fr 0.55fr 0.45fr 1.2fr;
    min-height: 360px;
  }

  .chery-premium-footer .cpf-lockup {
    max-width: 280px;
    height: 44px;
  }

  .chery-premium-footer .cpf-visual {
    min-height: 360px;
  }

  .chery-premium-footer .cpf-visual-img {
    width: 160%;
    object-position: right 50%;
  }
}

@media (max-width: 767px) {
  .chery-premium-footer .cpf-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .chery-premium-footer .cpf-brand-col,
  .chery-premium-footer .cpf-nav {
    border: 0;
    padding: 20px 0;
  }

  .chery-premium-footer .cpf-nav + .cpf-nav {
    border-top: 1px solid var(--cpf-line);
  }

  .chery-premium-footer .cpf-about {
    max-width: none;
  }

  .chery-premium-footer .cpf-social {
    margin-top: 0;
  }

  .chery-premium-footer .cpf-visual {
    min-height: 220px;
    height: 220px;
    width: calc(100% + 40px);
    margin: 0 -20px;
  }

  .chery-premium-footer .cpf-visual-img {
    width: 140%;
    object-position: right 45%;
  }

  .chery-premium-footer .cpf-visual-fade {
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.5) 25%,
      rgba(255, 255, 255, 0) 50%
    );
  }

  .chery-premium-footer .cpf-slogan {
    left: 20px;
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .chery-premium-footer .cpf-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
