/* Costa Cars — CMS / landing pages with embedded HTML (ty-wysiwyg-content) */

/* Embedded <style> in page body can override :root — restore site tokens */
html,
body,
.cc-site-shell {
  --text: #ffffff !important;
  --muted: rgba(255, 255, 255, 0.64) !important;
  --bg: #090b0f !important;
  --accent: #ef1f2d !important;
  --card: #11141a !important;
  --line: rgba(255, 255, 255, 0.1) !important;
  color: #fff;
}

.ty-mainbox-container:has(.ty-wysiwyg-content .wrap) {
  padding: 8px 0 48px;
}

.ty-mainbox-container:has(.ty-wysiwyg-content .wrap) .ty-mainbox-title {
  display: none !important;
}

.ty-wysiwyg-content {
  --bg: transparent;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #ef1f2d;
  --card: #11141a;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.22);
  --max: min(1200px, 100%);
  color: #fff;
  max-width: 100%;
  overflow-x: clip;
}

.ty-wysiwyg-content .wrap {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 24px 0 16px;
}

.ty-wysiwyg-content .lead h1,
.ty-wysiwyg-content .section h2,
.ty-wysiwyg-content .cta h2,
.ty-wysiwyg-content .card__title,
.ty-wysiwyg-content h1,
.ty-wysiwyg-content h2,
.ty-wysiwyg-content h3 {
  color: #fff !important;
}

.ty-wysiwyg-content .lead p,
.ty-wysiwyg-content .section p,
.ty-wysiwyg-content .card__text,
.ty-wysiwyg-content .note,
.ty-wysiwyg-content p {
  color: rgba(255, 255, 255, 0.62) !important;
}

.ty-wysiwyg-content .tagline {
  margin-bottom: 4px;
}

.ty-wysiwyg-content .tag {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.84) !important;
  box-shadow: none !important;
}

.ty-wysiwyg-content .hero {
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  min-height: clamp(220px, 34vw, 400px);
}

.ty-wysiwyg-content .hero img {
  width: 100%;
  min-height: clamp(220px, 34vw, 400px);
  object-fit: cover;
}

.ty-wysiwyg-content .card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #0d1016 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow-soft) !important;
}

.ty-wysiwyg-content .card__body {
  color: rgba(255, 255, 255, 0.82);
}

.ty-wysiwyg-content .spec {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.ty-wysiwyg-content .spec b {
  color: #fff;
}

.ty-wysiwyg-content .cta {
  background:
    radial-gradient(circle at 88% 14%, rgba(239, 31, 45, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #0d1016 !important;
  border: 1px solid rgba(239, 31, 45, 0.22) !important;
  box-shadow: var(--shadow) !important;
}

.ty-wysiwyg-content .btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ty-wysiwyg-content .btn--primary {
  background: linear-gradient(135deg, #ef1f2d, #ff3745) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(239, 31, 45, 0.24) !important;
}

.ty-wysiwyg-content .btn--primary:hover {
  transform: translateY(-1px);
}

.ty-wysiwyg-content .btn--ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.ty-wysiwyg-content .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.ty-wysiwyg-content .cards,
.ty-wysiwyg-content .specs,
.ty-wysiwyg-content .lead {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 760px) {
  .ty-wysiwyg-content .wrap {
    padding: 12px 0 8px;
  }

  .ty-wysiwyg-content .spec {
    grid-column: span 12 !important;
  }
}
