/* ============================================
   XIA ENHANCER Ã¢ÂÂ Apple-style sections
   ============================================ */

/* === MARQUEE BAND === */
.xia-marquee {
  background: var(--xia-black);
  color: var(--xia-mist);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.xia-marquee__track {
  display: inline-block;
  animation: xiaMarquee 40s linear infinite;
  font-family: var(--xia-font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-left: 100%;
}
.xia-marquee__track span {
  display: inline-block;
  padding: 0 1.5rem;
  color: var(--xia-mist);
}
.xia-marquee__track span:nth-child(odd) {
  color: rgba(255,255,255,0.4);
}
@keyframes xiaMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.xia-marquee:hover .xia-marquee__track { animation-play-state: paused; }

/* === STICKY PRODUCT SHOWCASE === */
.xia-sticky-showcase {
  padding: var(--xia-section-padding-y) 0;
  background: var(--xia-white);
  position: relative;
}
.xia-sticky-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--xia-space-9);
  max-width: var(--xia-container-max);
  margin: 0 auto;
  padding: 0 var(--xia-container-padding);
  align-items: start;
}
.xia-sticky-showcase__sticky {
  position: sticky;
  top: 100px;
  height: 80vh;
  border-radius: var(--xia-radius-xl);
  overflow: hidden;
  background: var(--xia-mist);
}
.xia-sticky-showcase__media {
  width: 100%;
  height: 100%;
  position: relative;
  transition: opacity 0.6s var(--xia-ease);
}
.xia-sticky-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}
.xia-sticky-showcase__panels {
  display: flex;
  flex-direction: column;
  gap: 100vh;
  padding: 30vh 0;
}
.xia-sticky-showcase__panel {
  min-height: 50vh;
  opacity: 0.35;
  transition: opacity 0.5s var(--xia-ease);
}
.xia-sticky-showcase__panel.is-active { opacity: 1; }
.xia-sticky-showcase__panel h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  margin: var(--xia-space-3) 0 var(--xia-space-4);
  letter-spacing: -0.025em;
}
.xia-sticky-showcase__panel p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--xia-gray);
  max-width: 480px;
  margin-bottom: var(--xia-space-5);
}
.xia-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--xia-space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.xia-feature-list li {
  font-size: 0.95rem;
  color: var(--xia-charcoal);
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
}
.xia-feature-list li::before {
  content: 'Ã¢ÂÂ';
  position: absolute;
  left: 0;
  color: var(--xia-accent);
  font-weight: 700;
}

/* === COLOR SHOWCASE === */
.xia-color-showcase { padding: var(--xia-section-padding-y) 0; }
.xia-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--xia-gutter);
  margin-top: var(--xia-space-7);
}
.xia-color-tile {
  aspect-ratio: 3/4;
  border-radius: var(--xia-radius-lg);
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--xia-ease), box-shadow 0.4s var(--xia-ease);
  color: white;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.xia-color-tile:hover { transform: translateY(-4px) scale(1.02); }
.xia-color-tile.is-active {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.xia-color-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.xia-color-tile__name {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
}

/* === PRESS STRIP === */
.xia-press-strip {
  padding: var(--xia-space-9) 0;
  background: var(--xia-white);
  border-top: 1px solid var(--xia-silver);
  border-bottom: 1px solid var(--xia-silver);
}
.xia-press-strip__label {
  text-align: center;
  font-size: var(--xia-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--xia-tracking-widest);
  color: var(--xia-light-gray);
  margin-bottom: var(--xia-space-5);
  font-weight: 500;
}
.xia-press-strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--xia-space-7);
  align-items: center;
}
.xia-press-logo {
  font-family: var(--xia-font-display);
  font-size: clamp(1.25rem, 1rem + 0.5vw, 1.75rem);
  font-weight: 700;
  color: var(--xia-light-gray);
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: opacity 0.3s var(--xia-ease);
}
.xia-press-logo:hover { opacity: 1; }

/* === FAQ === */
.xia-faq__item {
  background: var(--xia-mist);
  border-radius: var(--xia-radius-md);
  padding: 0;
  margin-bottom: var(--xia-space-3);
  overflow: hidden;
  transition: all 0.3s var(--xia-ease);
}
.xia-faq__item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--xia-font-display);
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--xia-charcoal);
  letter-spacing: -0.01em;
}
.xia-faq__item summary::-webkit-details-marker { display: none; }
.xia-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--xia-gray);
  transition: transform 0.3s var(--xia-ease);
}
.xia-faq__item[open] summary::after { content: 'Ã¢ÂÂ'; }
.xia-faq__item[open] { background: white; box-shadow: var(--xia-shadow-sm); }
.xia-faq__item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--xia-gray);
  line-height: 1.6;
  font-size: 1rem;
}

/* === ABOUT PAGE === */
.xia-about-hero {
  min-height: 70vh;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
.xia-about-hero .xia-hero__inner,
.xia-about-hero .xia-hero__title,
.xia-about-hero .xia-hero__subtitle,
.xia-about-hero .xia-hero__eyebrow {
  color: #1d1d1f !important;
}
.xia-about-hero .xia-hero__title { color: #1d1d1f !important; }
.xia-about-hero .xia-hero__subtitle { color: #6e6e73 !important; }
.xia-about-hero .xia-hero__eyebrow { color: #86868b !important; }

.xia-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--xia-gutter);
  margin-top: var(--xia-space-9);
}
.xia-value {
  background: var(--xia-white);
  padding: var(--xia-space-7);
  border-radius: var(--xia-radius-lg);
  box-shadow: var(--xia-shadow-xs);
}
.xia-value__num {
  font-family: var(--xia-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xia-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--xia-space-3);
}
.xia-value h3 {
  font-size: 1.5rem;
  margin: 0 0 var(--xia-space-3);
  letter-spacing: -0.02em;
}
.xia-value p {
  color: var(--xia-gray);
  margin: 0;
  line-height: 1.6;
}

.xia-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--xia-gutter);
}
.xia-team-card {
  text-align: center;
  padding: var(--xia-space-5);
}
.xia-team-card__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto var(--xia-space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--xia-font-display);
}
.xia-team-card h4 {
  font-size: 1.25rem;
  margin: 0 0 var(--xia-space-2);
  letter-spacing: -0.015em;
}
.xia-team-card__role {
  display: block;
  font-size: 0.875rem;
  color: var(--xia-accent);
  font-weight: 500;
  margin-bottom: var(--xia-space-3);
}
.xia-team-card p {
  font-size: 0.9rem;
  color: var(--xia-gray);
  margin: 0;
  line-height: 1.5;
}

/* === SHOWROOMS MAP === */
.xia-showrooms-map {
  position: relative;
  height: 60vh;
  min-height: 480px;
  border-radius: var(--xia-radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #e8eef3 0%, #d4e0e8 100%);
  margin: var(--xia-space-7) 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(0,113,227,0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(52,199,89,0.1) 0%, transparent 50%);
}
.xia-showroom-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  text-align: center;
  z-index: 2;
  transition: transform 0.3s var(--xia-ease);
}
.xia-showroom-pin:hover { transform: translate(-50%, -110%); }
.xia-showroom-pin__dot {
  width: 24px; height: 24px;
  background: var(--xia-accent);
  border: 3px solid white;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,113,227,0.5);
  animation: pinPulse 2.4s ease-in-out infinite;
}
.xia-showroom-pin__label {
  margin-top: 0.5rem;
  background: white;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--xia-charcoal);
  white-space: nowrap;
  box-shadow: var(--xia-shadow-sm);
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,113,227,0.5), 0 0 0 0 rgba(0,113,227,0.4); }
  50%      { box-shadow: 0 4px 12px rgba(0,113,227,0.5), 0 0 0 12px rgba(0,113,227,0); }
}

.xia-showrooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--xia-gutter);
  margin-top: var(--xia-space-7);
}
.xia-showroom-card {
  background: var(--xia-mist);
  border-radius: var(--xia-radius-lg);
  padding: var(--xia-space-6);
  transition: transform 0.3s var(--xia-ease), box-shadow 0.3s var(--xia-ease);
}
.xia-showroom-card:hover { transform: translateY(-3px); box-shadow: var(--xia-shadow-md); }
.xia-showroom-card h3 {
  font-size: 1.25rem;
  margin: 0 0 var(--xia-space-3);
  letter-spacing: -0.015em;
}
.xia-showroom-card__info {
  font-size: 0.9rem;
  color: var(--xia-gray);
  line-height: 1.7;
}
.xia-showroom-card__info strong { color: var(--xia-charcoal); display: block; margin-top: 0.5rem; }

/* === PRESS PAGE === */
.xia-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--xia-gutter);
  margin-top: var(--xia-space-7);
}
.xia-press-card {
  background: var(--xia-white);
  border: 1px solid var(--xia-silver);
  border-radius: var(--xia-radius-lg);
  padding: var(--xia-space-6);
  transition: all 0.3s var(--xia-ease);
}
.xia-press-card:hover { transform: translateY(-3px); box-shadow: var(--xia-shadow-md); border-color: var(--xia-accent); }
.xia-press-card__date {
  font-size: 0.8rem;
  color: var(--xia-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.xia-press-card h3 {
  font-size: 1.375rem;
  margin: var(--xia-space-3) 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.xia-press-card p { color: var(--xia-gray); font-size: 0.95rem; line-height: 1.6; margin: 0 0 var(--xia-space-4); }
.xia-press-card a.xia-link { font-size: 0.875rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .xia-sticky-showcase__grid {
    grid-template-columns: 1fr;
    gap: var(--xia-space-5);
  }
  .xia-sticky-showcase__sticky {
    position: sticky;
    top: 80px;
    height: 50vh;
  }
  .xia-sticky-showcase__panels { gap: 60vh; padding: 10vh 0; }
  .xia-color-grid { grid-template-columns: repeat(3, 1fr); }
  .xia-feature-list { grid-template-columns: 1fr; }
  .xia-press-strip__logos { gap: var(--xia-space-4); }
}
@media (max-width: 600px) {
  .xia-color-grid { grid-template-columns: repeat(2, 1fr); }
  .xia-sticky-showcase__sticky { height: 40vh; }
}

/* === BRAND FILTER BAR (Models page) === */
.xia-brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 var(--xia-space-6, 3rem);
  padding: 6px;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: max-content;
  max-width: 100%;
  position: relative;
}
@media (max-width: 768px) {
  .xia-brand-filter {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .xia-brand-filter::-webkit-scrollbar { display: none; }
}
.xia-brand-chip {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 9px 18px;
  border-radius: 980px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  letter-spacing: -0.01em;
}
.xia-brand-chip:hover {
  background: rgba(0, 0, 0, 0.05);
}
.xia-brand-chip.is-active {
  background: #1d1d1f;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.xia-brand-chip.is-active:hover {
  background: #1d1d1f;
}
.xia-brand-chip__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.xia-brand-chip__name {
  letter-spacing: -0.01em;
}
.xia-brand-chip__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #6e6e73;
  min-width: 22px;
  text-align: center;
}
.xia-brand-chip.is-active .xia-brand-chip__count {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

/* Per-brand accent color (the small dot) */
.xia-brand-chip[data-brand="nio"] .xia-brand-chip__dot { background: #00bcd4; }
.xia-brand-chip[data-brand="zeekr"] .xia-brand-chip__dot { background: #1d1d1f; }
.xia-brand-chip[data-brand="xiaomi"] .xia-brand-chip__dot { background: #ff6900; }
.xia-brand-chip[data-brand="xpeng"] .xia-brand-chip__dot { background: #00a86b; }
.xia-brand-chip[data-brand="leapmotor"] .xia-brand-chip__dot { background: #1e6dff; }
.xia-brand-chip[data-brand="changan"] .xia-brand-chip__dot { background: #d4001a; }
.xia-brand-chip[data-brand="geely"] .xia-brand-chip__dot { background: #0066b3; }
.xia-brand-chip[data-brand="dongfeng"] .xia-brand-chip__dot { background: #c8102e; }
.xia-brand-chip[data-brand="geometry"] .xia-brand-chip__dot { background: #6e3aff; }

/* Filtered-out cards */
.xia-model-card.is-hidden {
  display: none;
}
.xia-models-empty {
  text-align: center;
  padding: var(--xia-space-7, 6rem) var(--xia-space-4);
  color: #6e6e73;
  font-size: 17px;
}
.xia-models-empty p {
  margin: 0;
}

/* Subtle reveal animation when filter changes */
@keyframes xia-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.xia-model-card.xia-card-reveal {
  animation: xia-card-in 0.35s ease both;
}

/* === BRAND LOGO CHIPS (replaces colored dots) === */
.xia-brand-chip__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.xia-brand-chip__logo img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(0.1);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.xia-brand-chip__logo--all {
  background: linear-gradient(135deg, #f5f5f7, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.xia-brand-chip__logo--all svg {
  width: 18px;
  height: 18px;
}
.xia-brand-chip:hover .xia-brand-chip__logo {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.xia-brand-chip.is-active .xia-brand-chip__logo {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.xia-brand-chip.is-active .xia-brand-chip__logo img {
  filter: brightness(0) invert(1);
}

/* Slight refinement to the existing dot, in case it's still used somewhere */
.xia-brand-chip__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* On mobile, hide logo to keep chips compact */
@media (max-width: 480px) {
  .xia-brand-chip__logo {
    width: 24px;
    height: 24px;
  }
  .xia-brand-chip__logo img {
    width: 18px;
    height: 18px;
  }
  .xia-brand-chip {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* === LIGHT MODE FIXES Ã¢ÂÂ Force light styles regardless of OS dark mode === */
.xia-about-hero,
body .xia-about-hero {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
.xia-about-hero .xia-hero__inner,
.xia-about-hero .xia-hero__title,
.xia-about-hero .xia-hero__subtitle,
.xia-about-hero .xia-hero__eyebrow {
  color: #1d1d1f !important;
}
.xia-about-hero .xia-hero__subtitle { color: #6e6e73 !important; }
.xia-about-hero .xia-hero__eyebrow { color: #86868b !important; }

/* === LIGHT MODE FIXES Ã¢ÂÂ Force light styles for content sections === */
/* These ensure the page is readable regardless of OS dark mode */
.xia-section:not(.xia-section--dark):not(.xia-section--black) h1,
.xia-section:not(.xia-section--dark):not(.xia-section--black) h2,
.xia-section:not(.xia-section--dark):not(.xia-section--black) h3,
.xia-section:not(.xia-section--dark):not(.xia-section--black) h4,
.xia-section:not(.xia-section--dark):not(.xia-section--black) h5,
.xia-section:not(.xia-section--dark):not(.xia-section--black) h6 {
  color: #1d1d1f !important;
}
.xia-section:not(.xia-section--dark):not(.xia-section--black) p {
  color: #424245 !important;
}
.xia-section:not(.xia-section--dark):not(.xia-section--black) .xia-eyebrow,
.xia-section:not(.xia-section--dark):not(.xia-section--black) .xia-lead {
  color: #6e6e73 !important;
}

/* Header on light pages */
.xia-section--hero.xia-hero--light ~ * .xia-nav__list a,
.xia-section--hero.xia-hero--light ~ * .xia-logo,
.xia-section--hero.xia-hero--light ~ * .xia-icon-btn {
  color: #1d1d1f !important;
}

/* === Force light text colors for nav on light pages === */
body.xia-section-xia-template-about .xia-header,
body.xia-section-xia-template-about .xia-header a,
body.xia-section-xia-template-about .xia-logo,
body.xia-section-xia-template-about .xia-nav__list a,
body.xia-section-xia-template-about .xia-icon-btn,
.page-template-xia-template-about .xia-header,
.page-template-xia-template-about .xia-header a,
.page-template-xia-template-about .xia-logo,
.page-template-xia-template-about .xia-nav__list a,
.page-template-xia-template-about .xia-icon-btn {
  color: #1d1d1f !important;
}
.page-template-xia-template-about .xia-logo__mark {
  background: linear-gradient(135deg, #1a1a1a 0%, #444 100%) !important;
  color: #fff !important;
}

/* === Header colors on ALL light-themed pages === */
.page-template-xia-template-contact .xia-header,
.page-template-xia-template-contact .xia-header a,
.page-template-xia-template-contact .xia-logo,
.page-template-xia-template-contact .xia-nav__list a,
.page-template-xia-template-contact .xia-icon-btn,
.page-template-xia-template-test-drive .xia-header,
.page-template-xia-template-test-drive .xia-header a,
.page-template-xia-template-test-drive .xia-logo,
.page-template-xia-template-test-drive .xia-nav__list a,
.page-template-xia-template-test-drive .xia-icon-btn,
.page-template-xia-template-configurator .xia-header,
.page-template-xia-template-configurator .xia-header a,
.page-template-xia-template-configurator .xia-logo,
.page-template-xia-template-configurator .xia-nav__list a,
.page-template-xia-template-configurator .xia-icon-btn,
.page-template-xia-template-press .xia-header,
.page-template-xia-template-press .xia-header a,
.page-template-xia-template-press .xia-logo,
.page-template-xia-template-press .xia-nav__list a,
.page-template-xia-template-press .xia-icon-btn,
.page-template-xia-template-showrooms .xia-header,
.page-template-xia-template-showrooms .xia-header a,
.page-template-xia-template-showrooms .xia-logo,
.page-template-xia-template-showrooms .xia-nav__list a,
.page-template-xia-template-showrooms .xia-icon-btn {
  color: #1d1d1f !important;
}
.page-template-xia-template-contact .xia-logo__mark,
.page-template-xia-template-test-drive .xia-logo__mark,
.page-template-xia-template-configurator .xia-logo__mark,
.page-template-xia-template-press .xia-logo__mark,
.page-template-xia-template-showrooms .xia-logo__mark {
  background: linear-gradient(135deg, #1a1a1a 0%, #444 100%) !important;
  color: #fff !important;
}

/* === Force light backgrounds on body for light-template pages === */
body.page-template-xia-template-about,
body.page-template-xia-template-contact,
body.page-template-xia-template-test-drive,
body.page-template-xia-template-configurator,
body.page-template-xia-template-press,
body.page-template-xia-template-showrooms {
  background: #ffffff !important;
  color: #1d1d1f !important;
}
body.page-template-xia-template-about .xia-section--hero.xia-hero--light,
body.page-template-xia-template-contact .xia-section--hero.xia-hero--light,
body.page-template-xia-template-test-drive .xia-section--hero.xia-hero--light,
body.page-template-xia-template-configurator .xia-section--hero.xia-hero--light,
body.page-template-xia-template-press .xia-section--hero.xia-hero--light,
body.page-template-xia-template-showrooms .xia-section--hero.xia-hero--light {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body.page-template-xia-template-about .xia-hero__title,
body.page-template-xia-template-contact .xia-hero__title,
body.page-template-xia-template-test-drive .xia-hero__title,
body.page-template-xia-template-configurator .xia-hero__title,
body.page-template-xia-template-press .xia-hero__title,
body.page-template-xia-template-showrooms .xia-hero__title {
  color: #1d1d1f !important;
}
body.page-template-xia-template-about .xia-hero__subtitle,
body.page-template-xia-template-contact .xia-hero__subtitle,
body.page-template-xia-template-test-drive .xia-hero__subtitle,
body.page-template-xia-template-configurator .xia-hero__subtitle,
body.page-template-xia-template-press .xia-hero__subtitle,
body.page-template-xia-template-showrooms .xia-hero__subtitle {
  color: #6e6e73 !important;
}
body.page-template-xia-template-about .xia-hero__eyebrow,
body.page-template-xia-template-contact .xia-hero__eyebrow,
body.page-template-xia-template-test-drive .xia-hero__eyebrow,
body.page-template-xia-template-configurator .xia-hero__eyebrow,
body.page-template-xia-template-press .xia-hero__eyebrow,
body.page-template-xia-template-showrooms .xia-hero__eyebrow {
  color: #86868b !important;
}

/* === Force light bento cards on showrooms page === */
body.page-template-xia-template-showrooms .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body.page-template-xia-template-showrooms .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) h3,
body.page-template-xia-template-showrooms .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) p {
  color: #1d1d1f !important;
}
body.page-template-xia-template-showrooms .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) .xia-bento__sub {
  color: #6e6e73 !important;
}

/* === Force light bento cards on showrooms archive page === */
body.post-type-archive-xia_showroom .xia-bento__item,
body.post-type-archive-xia_showroom .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body.post-type-archive-xia_showroom .xia-bento__item h3,
body.post-type-archive-xia_showroom .xia-bento__item p,
body.post-type-archive-xia_showroom .xia-bento__title,
body.post-type-archive-xia_showroom .xia-bento__sub {
  color: #1d1d1f !important;
}
body.post-type-archive-xia_showroom .xia-bento__sub {
  color: #6e6e73 !important;
}
body.post-type-archive-xia_showroom .xia-header,
body.post-type-archive-xia_showroom .xia-header a,
body.post-type-archive-xia_showroom .xia-logo,
body.post-type-archive-xia_showroom .xia-nav__list a,
body.post-type-archive-xia_showroom .xia-icon-btn {
  color: #1d1d1f !important;
}
body.post-type-archive-xia_showroom {
  background: #ffffff !important;
  color: #1d1d1f !important;
}
body.post-type-archive-xia_showroom .xia-section--hero.xia-hero--light {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body.post-type-archive-xia_showroom .xia-hero__title,
body.post-type-archive-xia_showroom .xia-hero__subtitle,
body.post-type-archive-xia_showroom .xia-hero__eyebrow {
  color: #1d1d1f !important;
}
body.post-type-archive-xia_showroom .xia-hero__subtitle { color: #6e6e73 !important; }
body.post-type-archive-xia_showroom .xia-hero__eyebrow { color: #86868b !important; }

/* === FINAL FIX: Force light theme regardless of OS pref === */
/* This is the comprehensive fix that ensures all pages are readable */
:root {
  --xia-mist: #f5f5f7 !important;
  --xia-off-white: #fafafa !important;
  --xia-silver: #d2d2d7 !important;
  --xia-light-gray: #86868b !important;
  --xia-gray: #6e6e73 !important;
  --xia-slate: #424245 !important;
  --xia-graphite: #2c2c2e !important;
  --xia-charcoal: #1d1d1f !important;
  --xia-near-black: #0a0a0a !important;
  --xia-black: #000000 !important;
  --xia-white: #ffffff !important;
  --xia-blue: #0071e3 !important;
  --xia-blue-hover: #0077ed !important;
  --xia-blue-dark: #0051a8 !important;
  --xia-red: #ff3b30 !important;
  --xia-green: #34c759 !important;
  --xia-orange: #ff9500 !important;
  --xia-accent: #0071e3 !important;
  --xia-accent-2: #06c !important;
}

/* Don't let dark mode CSS rule override */
@media (prefers-color-scheme: dark) {
  :root {
    --xia-mist: #f5f5f7 !important;
    --xia-off-white: #fafafa !important;
    --xia-silver: #d2d2d7 !important;
    --xia-light-gray: #86868b !important;
    --xia-gray: #6e6e73 !important;
    --xia-slate: #424245 !important;
    --xia-graphite: #2c2c2e !important;
    --xia-charcoal: #1d1d1f !important;
    --xia-near-black: #0a0a0a !important;
    --xia-black: #000000 !important;
    --xia-white: #ffffff !important;
    --xia-blue: #0071e3 !important;
    --xia-blue-hover: #0077ed !important;
    --xia-blue-dark: #0051a8 !important;
    --xia-red: #ff3b30 !important;
    --xia-green: #34c759 !important;
    --xia-orange: #ff9500 !important;
    --xia-accent: #0071e3 !important;
    --xia-accent-2: #06c !important;
  }
}

/* Force body bg to white */
body {
  background: #ffffff !important;
  color: #1d1d1f !important;
}

/* Override all dark/black sections in light mode */
body .xia-section--black,
body .xia-section--dark {
  background: #1d1d1f !important;
  color: #f5f5f7 !important;
}

/* Header colors - always dark on light bg */
body .xia-header,
body .xia-header a,
body .xia-logo,
body .xia-nav__list a,
body .xia-icon-btn,
body .xia-nav-toggle,
body .xia-nav__cta a {
  color: #1d1d1f !important;
}

/* On DARK sections, the header should be light */
body .xia-section--black ~ * .xia-header,
body .xia-section--dark ~ * .xia-header,
body .xia-section--black ~ * .xia-header a,
body .xia-section--dark ~ * .xia-header a,
body .xia-section--black ~ * .xia-logo,
body .xia-section--dark ~ * .xia-logo,
body .xia-section--black ~ * .xia-nav__list a,
body .xia-section--dark ~ * .xia-nav__list a,
body .xia-section--black ~ * .xia-icon-btn,
body .xia-section--dark ~ * .xia-icon-btn {
  color: #f5f5f7 !important;
}

/* Sticky showcase panel text */
body .xia-sticky-showcase__panel h2 {
  color: #1d1d1f !important;
}
body .xia-sticky-showcase__panel p {
  color: #6e6e73 !important;
}

/* Bento cards default (non-dark, non-black, non-gradient) */
body .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) .xia-bento__title,
body .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) h3,
body .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) p {
  color: #1d1d1f !important;
}
body .xia-bento__item:not(.xia-bento__item--dark):not(.xia-bento__item--black):not(.xia-bento__item--gradient-blue) .xia-bento__sub {
  color: #6e6e73 !important;
}

/* Section headings on light sections */
body .xia-section:not(.xia-section--dark):not(.xia-section--black) h1,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) h2,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) h3,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) h4,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) h5,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) h6,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) p,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) .xia-eyebrow,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) .xia-lead {
  color: #1d1d1f !important;
}
body .xia-section:not(.xia-section--dark):not(.xia-section--black) p {
  color: #424245 !important;
}
body .xia-section:not(.xia-section--dark):not(.xia-section--black) .xia-eyebrow,
body .xia-section:not(.xia-section--dark):not(.xia-section--black) .xia-lead {
  color: #6e6e73 !important;
}

/* FAQ section */
body .xia-faq__item {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body .xia-faq__item summary {
  color: #1d1d1f !important;
}
body .xia-faq__item p {
  color: #6e6e73 !important;
}

/* Hero (light variant) */
body .xia-hero--light {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
body .xia-hero--light .xia-hero__title,
body .xia-hero--light .xia-hero__subtitle,
body .xia-hero--light .xia-hero__eyebrow,
body .xia-hero--light .xia-hero__inner {
  color: #1d1d1f !important;
}
body .xia-hero--light .xia-hero__subtitle {
  color: #6e6e73 !important;
}
body .xia-hero--light .xia-hero__eyebrow {
  color: #86868b !important;
}

/* === MODELS ARCHIVE STYLE FIX (scoped) === */
.post-type-archive-xia_model .xia-brand-filter,
body.post-type-archive-xia_model .xia-brand-filter {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 28px;
  background: rgba(245,245,247,.82);
  border: 1px solid rgba(29,29,31,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}
.post-type-archive-xia_model .xia-brand-filter::-webkit-scrollbar { display: none; }
.post-type-archive-xia_model .xia-brand-chip {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 13px 8px 10px;
  gap: 8px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.72);
  color: #1d1d1f;
  box-shadow: none;
}
.post-type-archive-xia_model .xia-brand-chip:hover {
  background: #fff;
  border-color: rgba(29,29,31,.08);
  transform: translateY(-1px);
}
.post-type-archive-xia_model .xia-brand-chip.is-active,
.post-type-archive-xia_model .xia-brand-chip[aria-selected="true"] {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.post-type-archive-xia_model .xia-brand-chip__logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
}
.post-type-archive-xia_model .xia-brand-chip__name {
  font-size: 14px;
  font-weight: 600;
}
.post-type-archive-xia_model .xia-brand-chip__count {
  min-width: 24px;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1;
}
.post-type-archive-xia_model .xia-models-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.post-type-archive-xia_model .xia-model-card {
  min-height: auto;
  padding: clamp(24px, 2.5vw, 34px);
  border-radius: 24px;
}
.post-type-archive-xia_model .xia-model-card__image {
  max-width: 320px;
  margin-bottom: 22px;
}
.post-type-archive-xia_model .xia-model-card__title {
  font-size: clamp(1.45rem, 1.1rem + .75vw, 2rem);
  line-height: 1.08;
}
.post-type-archive-xia_model .xia-model-card__actions {
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .post-type-archive-xia_model .xia-brand-filter {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  .post-type-archive-xia_model .xia-model-card { padding: 24px; }
}
/* === END MODELS ARCHIVE STYLE FIX === */
