/* ============================================================
   Lorixen — Before / After Marquee (additive, revertible)
   Replaces the legacy .fix-ba split. Two rows drift in opposite
   directions: row 1 = dated HVAC sites, row 2 = Lorixen redesigns.
   To revert: delete this file + its <link> in index.html.
   ============================================================ */

/* Hide the legacy before/after split — the marquee replaces it. */
.fix-ba { display: none !important; }

.lx-marquee {
  position: relative;
  padding: 96px 0 104px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(15,118,110,0.10), transparent 60%),
    #0B3B3C;
  color: #FAFAF7;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Header ---------- */
.lx-marquee__head {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}
.lx-marquee__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
}
.lx-marquee__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #0F766E;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.30);
  border-radius: 50%;
}
.lx-marquee__title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 18px 0 0;
  color: #FAFAF7;
}
.lx-marquee__title em {
  font-style: italic;
  font-weight: 400;
  color: #E8B26C;
}
.lx-marquee__sub {
  margin: 18px auto 0;
  max-width: 640px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(250,250,247,0.62);
  line-height: 1.5;
}

/* ---------- Row label (BEFORE / AFTER) ---------- */
.lx-marquee__rowhead {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 14px;
  padding: 0 24px;
}
.lx-marquee__rowhead--after { margin-top: 28px; }
.lx-marquee__rowtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.lx-marquee__rowtag--before {
  color: #FCC9B5;
  background: rgba(196,90,63,0.18);
  border: 1px solid rgba(196,90,63,0.45);
}
.lx-marquee__rowtag--after {
  color: #E8B26C;
  background: rgba(232,178,108,0.14);
  border: 1px solid rgba(232,178,108,0.45);
}
.lx-marquee__rowtag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lx-marquee__rowdesc {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(250,250,247,0.55);
  letter-spacing: 0.02em;
}

/* Center transition line between rows. */
.lx-marquee__transition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1180px;
  margin: 22px auto;
  padding: 0 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.50);
}
.lx-marquee__transition::before,
.lx-marquee__transition::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,178,108,0.30), transparent);
}
.lx-marquee__transition strong {
  color: #E8B26C;
  font-weight: 600;
}

/* ---------- Rows ---------- */
.lx-marquee__row { display: flex; width: 100%; overflow: hidden; position: relative; }
.lx-marquee__row::before,
.lx-marquee__row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(80px, 12vw, 180px);
  z-index: 3;
  pointer-events: none;
}
.lx-marquee__row::before { left: 0; background: linear-gradient(to right, #0B3B3C, transparent); }
.lx-marquee__row::after  { right: 0; background: linear-gradient(to left,  #0B3B3C, transparent); }

.lx-marquee__track {
  display: flex;
  align-items: stretch;
  gap: 28px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 0;
  will-change: transform;
}

.lx-marquee__row--primary .lx-marquee__track   { animation: lxMarqueeLeft  var(--lx-duration, 64s) linear infinite; }
.lx-marquee__row--secondary .lx-marquee__track { animation: lxMarqueeRight var(--lx-duration, 80s) linear infinite; }

@keyframes lxMarqueeLeft  { from { transform: translate3d(0, 0, 0); }     to { transform: translate3d(-50%, 0, 0); } }
@keyframes lxMarqueeRight { from { transform: translate3d(-50%, 0, 0); }  to { transform: translate3d(0, 0, 0); } }

.lx-marquee:hover .lx-marquee__track { animation-play-state: paused; }

/* ============================================================
   AFTER CARD — modern, polished (photo-backed)
   ============================================================ */
.lx-card {
  flex-shrink: 0;
  width: clamp(280px, 26vw, 400px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  white-space: normal;
  text-decoration: none;
  color: inherit;
}
.lx-card__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #11484A;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 48px -20px rgba(0,0,0,0.50),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
  isolation: isolate;
}
.lx-card:hover .lx-card__frame {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(232,178,108,0.20) inset;
}

.lx-card__hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.lx-card__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lx-card__chrome {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.lx-card__dots { display: flex; gap: 5px; }
.lx-card__dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
}
.lx-card__url {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.lx-card__nav {
  position: absolute;
  top: 38px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.92);
}
.lx-card__nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.lx-card__nav-brand-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.95;
}
.lx-card__nav-links {
  display: flex;
  gap: 10px;
  opacity: 0.78;
}

.lx-card__mock {
  position: absolute;
  inset: 0;
  padding: 38px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  color: #FAFAF7;
}
.lx-card__mock-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.lx-card__mock-h {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
  white-space: normal;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.lx-card__mock-h em { font-style: italic; }
.lx-card__mock-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #0B3B3C;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.40);
}
.lx-card__mock-cta::after { content: "→"; font-size: 12px; }

.lx-card__trust {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.lx-card__trust span {
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  letter-spacing: 0.04em;
}

/* Palette tints */
.lx-card--orange .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 45%, rgba(232,146,75,0.55) 100%); }
.lx-card--navy   .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(16,44,64,0) 45%, rgba(16,44,64,0.78) 100%); }
.lx-card--cream  .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(74,55,32,0.65) 100%); }
.lx-card--teal   .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(15,79,74,0) 45%, rgba(15,79,74,0.78) 100%); }
.lx-card--rust   .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(122,46,28,0) 45%, rgba(122,46,28,0.78) 100%); }
.lx-card--ink    .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.10) 30%, rgba(15,15,15,0.20) 60%, rgba(15,15,15,0.85) 100%); }
.lx-card--sage   .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0) 30%, rgba(60,80,55,0) 50%, rgba(60,80,55,0.72) 100%); }
.lx-card--ember  .lx-card__tint { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(176,112,40,0) 45%, rgba(176,112,40,0.78) 100%); }

/* Caption */
.lx-card__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.lx-card__name {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #FAFAF7;
}
.lx-card__type {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(250,250,247,0.55);
  letter-spacing: 0.01em;
}
.lx-card__type--before { color: #FCC9B5; }
.lx-card__type--after  { color: #E8B26C; }

/* ============================================================
   BEFORE CARD — single shared layout with muted theme palettes.
   Frame matches the "after" frame (same radius / border / shadow
   / hover) for section consistency.
   ============================================================ */
.lx-card--before .lx-card__frame {
  background: #efeadd;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow:
    0 24px 48px -20px rgba(0,0,0,0.50),
    0 0 0 1px rgba(0,0,0,0.04) inset;
  overflow: hidden;
}
.lx-card--before:hover .lx-card__frame {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,0,0,0.06) inset;
}
.lx-card--before .lx-card__chrome--old {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: linear-gradient(180deg, #e8e3d4 0%, #c9c3b0 100%);
  border-bottom: 1px solid rgba(0,0,0,0.10);
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  z-index: 2;
}
.lx-card--before .lx-card__chrome--old .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
}
.lx-card--before .lx-card__chrome--old .dot--r { background: #c47a6a; }
.lx-card--before .lx-card__chrome--old .dot--y { background: #d4b770; }
.lx-card--before .lx-card__chrome--old .dot--g { background: #7ba070; }
.lx-card--before .lx-card__chrome--old .url {
  flex: 1;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #2a3a5a;
  padding: 1px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.lx-card--before .lx-card__before {
  position: absolute;
  top: 22px; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.lx-card--before .lx-card__before-banner {
  text-align: center;
  padding: 8px 8px 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}
.lx-card--before .lx-card__before-body {
  flex: 1;
  padding: 10px 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.lx-card--before .lx-card__before-h {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.lx-card--before .lx-card__before-feat {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}
.lx-card--before .lx-card__before-feat span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.lx-card--before .lx-card__before-cta {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.30);
  cursor: pointer;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.18);
  margin-top: 2px;
}
.lx-card--before .lx-card__before-foot {
  font-family: "Courier New", monospace;
  font-size: 8px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.06);
  border-top: 1px dashed rgba(0,0,0,0.30);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* All "before" themes use muted, period-correct palettes —
   cream / olive / parchment / tan / manila / dusty rose —
   harmonised with the page's green / cream / copper. No neon,
   no decorative textures. */

/* Theme: paper — cream + faded navy + Times */
.lx-card--before-paper .lx-card__before {
  background: #efeadd;
  color: #2a2a2a;
  font-family: "Times New Roman", Times, serif;
}
.lx-card--before-paper .lx-card__before-banner {
  background: #2a3a5a;
  color: #efeadd;
  border-bottom-color: #1f2c44;
}
.lx-card--before-paper .lx-card__before-h { color: #1f2c44; }
.lx-card--before-paper .lx-card__before-cta {
  background: #c9b88a;
  color: #2a2010;
  border-color: #8a7848;
}

/* Theme: olive — dusty olive + cream + Verdana */
.lx-card--before-olive .lx-card__before {
  background: #6c7a4f;
  color: #f1ecdf;
  font-family: Verdana, Geneva, sans-serif;
}
.lx-card--before-olive .lx-card__before-banner {
  background: #4a5530;
  color: #f1ecdf;
  border-bottom-color: #3a4525;
}
.lx-card--before-olive .lx-card__before-h { color: #f5efdc; }
.lx-card--before-olive .lx-card__before-feat span {
  border-color: rgba(241,236,223,0.55);
  color: #f1ecdf;
}
.lx-card--before-olive .lx-card__before-cta {
  background: #b89a5e;
  color: #2a2010;
  border-color: #7a6438;
}

/* Theme: slate — parchment + faded burgundy + Times */
.lx-card--before-slate .lx-card__before {
  background: #ece6d3;
  color: #2a2a2a;
  font-family: "Times New Roman", Times, serif;
}
.lx-card--before-slate .lx-card__before-banner {
  background: #7a3a32;
  color: #f1ecdf;
  border-bottom-color: #5a2a22;
}
.lx-card--before-slate .lx-card__before-h { color: #5a2a22; }
.lx-card--before-slate .lx-card__before-cta {
  background: #6b8a6b;
  color: #f1ecdf;
  border-color: #3f5a3f;
}

/* Theme: tan — tan parchment + brown + Verdana */
.lx-card--before-tan .lx-card__before {
  background: #d8c89a;
  color: #3a2a18;
  font-family: Verdana, Geneva, sans-serif;
}
.lx-card--before-tan .lx-card__before-banner {
  background: #6e4a2a;
  color: #f1ecdf;
  border-bottom-color: #4f3520;
}
.lx-card--before-tan .lx-card__before-h { color: #4f3520; }
.lx-card--before-tan .lx-card__before-feat span {
  border-color: rgba(58,42,24,0.40);
}
.lx-card--before-tan .lx-card__before-cta {
  background: #8a6b3a;
  color: #f1ecdf;
  border-color: #5a431f;
}

/* Theme: manila — off-white + dusty teal + Times */
.lx-card--before-manila .lx-card__before {
  background: #f5f1e6;
  color: #2a2a2a;
  font-family: "Times New Roman", Times, serif;
}
.lx-card--before-manila .lx-card__before-banner {
  background: #3f6062;
  color: #f5f1e6;
  border-bottom-color: #2a4445;
}
.lx-card--before-manila .lx-card__before-h { color: #2a4445; }
.lx-card--before-manila .lx-card__before-cta {
  background: #5a7a7a;
  color: #f5f1e6;
  border-color: #2a4445;
}

/* Theme: dust — muted dusty rose + rust + Arial */
.lx-card--before-dust .lx-card__before {
  background: #d8b09a;
  color: #3a2a1f;
  font-family: Arial, Helvetica, sans-serif;
}
.lx-card--before-dust .lx-card__before-banner {
  background: #7a3a20;
  color: #f1ecdf;
  border-bottom-color: #582714;
}
.lx-card--before-dust .lx-card__before-h { color: #582714; }
.lx-card--before-dust .lx-card__before-feat span {
  border-color: rgba(58,42,31,0.45);
}
.lx-card--before-dust .lx-card__before-cta {
  background: #6b7a4a;
  color: #f1ecdf;
  border-color: #3f4a25;
}

.lx-card--before .lx-card__before-h--xl  { font-size: 17px; }
.lx-card--before .lx-card__before-h--lg  { font-size: 15px; }
.lx-card--before .lx-card__before-h--md  { font-size: 13px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lx-marquee__track { animation: none !important; transform: translate3d(0, 0, 0) !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .lx-marquee { padding: 64px 0 72px; }
  .lx-marquee__head { margin-bottom: 28px; }
  .lx-marquee__transition { margin: 14px auto; }
  .lx-marquee__track { gap: 18px; }
  .lx-card { width: 220px; }
  .lx-card__mock { padding: 32px 16px 16px; }
  .lx-card__mock-h { font-size: 15px; }
  .lx-card__mock-cta { font-size: 10px; padding: 6px 12px; }
  .lx-card__name { font-size: 15px; }
  .lx-card__type { font-size: 12px; }
  .lx-card__nav { font-size: 8px; top: 34px; }
  .lx-card__trust span { font-size: 7px; }
  .lx-marquee__rowtag { font-size: 10px; padding: 5px 10px; }
  .lx-marquee__rowdesc { font-size: 11px; }
  .lx-card--before .lx-card__before-h--xl { font-size: 14px; }
  .lx-card--before .lx-card__before-h--lg { font-size: 13px; }
  .lx-card--before .lx-card__before-h--md { font-size: 12px; }
  .lx-card--before .lx-card__before-feat { font-size: 9px; }
  .lx-card--before .lx-card__before-cta { font-size: 9px; padding: 5px 10px; }
}
