/**
 * BYD Bogor Addon - v3 section system (one widget = one section)
 *
 * Specificity rule: every selector here is wrapped in :where() so it stays at the
 * level of the legacy stylesheet (wins by load order) but ALWAYS loses to the
 * Elementor Style-tab controls ({{WRAPPER}} selectors). Your panel settings win.
 */

/* ==========================================================================
   1. SECTION SHELL & COLOUR SCHEMES
   ========================================================================== */

.byd-sec {
  position: relative;
  padding: var(--byd-section-y) 20px;
  background: var(--byd-sec-bg, #ffffff);
  color: var(--brand-text);
  overflow-x: clip;
  font-family: var(--brand-font-body);
}

.byd-sec-inner {
  position: relative;
  max-width: var(--byd-container);
  margin: 0 auto;
}

:where(.byd-scheme-light) .byd-sec {
  --byd-sec-bg: #ffffff;
}

:where(.byd-scheme-alt) .byd-sec {
  --byd-sec-bg: var(--brand-surface-alt);
  --byd-card-bg: #ffffff;
}

:where(.byd-scheme-dark) .byd-sec {
  --byd-sec-bg: radial-gradient(70% 60% at 85% 0%, rgba(229, 37, 53, 0.16), transparent 60%), #0b0f17;
  --byd-sec-solid: #0b0f17;
  --brand-ink: #ffffff;
  --brand-text: rgba(255, 255, 255, 0.84);
  --brand-text-muted: rgba(255, 255, 255, 0.66);
  --brand-text-subtle: rgba(255, 255, 255, 0.5);
  --brand-border: rgba(255, 255, 255, 0.1);
  --brand-border-strong: rgba(255, 255, 255, 0.22);
  --brand-surface-alt: rgba(255, 255, 255, 0.06);
  --brand-surface-sunken: rgba(255, 255, 255, 0.08);
  --brand-primary: #ff4d5e;
  --brand-primary-soft: rgba(229, 37, 53, 0.18);
  --byd-card-bg: rgba(255, 255, 255, 0.045);
  --byd-input-bg: rgba(255, 255, 255, 0.06);
  --byd-on-ink: #0b0f17;
}

/* Header */
:where(.byd-sec) .byd-section-header {
  margin-bottom: 48px;
}

:where(.byd-sec) .byd-section-title .byd-hl,
:where(.byd-sec) .byd-intro-heading .byd-hl,
:where(.byd-sec) .byd-hero-title .byd-hl {
  color: var(--brand-primary);
}

.elementor-widget:not(.byd-eyebrow-line-yes) :where(.byd-sec) .byd-section-subtitle::before {
  display: none;
}

/* Legacy wrapper classes reused on v3 sections lose their own padding/background */
:where(.byd-sec).byd-lineup-section,
:where(.byd-sec).byd-calc-section,
:where(.byd-sec).byd-lead-section,
:where(.byd-sec).byd-chat-section,
:where(.byd-sec).byd-faq-section,
:where(.byd-sec).byd-testimonial-section,
:where(.byd-sec).byd-sales-intro-banner,
:where(.byd-sec).byd-hero-slider-wrap {
  padding: var(--byd-section-y) 20px;
  background: var(--byd-sec-bg, #ffffff);
}

/* ==========================================================================
   2. CARDS, SURFACES & "ON INK" COLOURS (follow the palette variables)
   ========================================================================== */

:where(.byd-sec) :is(.byd-pillar-card, .byd-reason-card, .byd-step-body, .byd-car-card, .byd-testimonial-slide-card,
  .byd-lead-location-card, .byd-lead-form-card, .byd-faq-item, .byd-chat-box, .byd-calc-card-main, .byd-promo-card,
  .byd-consultant-card, .byd-quick-bar, .byd-pill-link, .byd-btn-spec, .byd-btn-gmaps, .byd-testi-nav button, .byd-bpom-card) {
  background: var(--byd-card-bg, #ffffff);
  border-color: var(--brand-border);
}

:where(.byd-sec) :is(.byd-pillar-card, .byd-reason-card, .byd-car-card, .byd-testimonial-slide-card, .byd-lead-location-card,
  .byd-lead-form-card, .byd-chat-box, .byd-calc-card-main, .byd-promo-card) {
  border-radius: var(--byd-radius, 20px);
}

:where(.byd-sec) :is(.byd-step-body, .byd-faq-item) {
  border-radius: var(--byd-radius, 14px);
}

:where(.byd-sec) .byd-sales-spotlight-card {
  background: var(--byd-card-bg, var(--brand-surface-alt));
  border-color: var(--brand-border);
  border-radius: var(--byd-radius, 28px);
}

:where(.byd-scheme-light) :where(.byd-sec) .byd-sales-spotlight-card {
  --byd-card-bg: var(--brand-surface-alt);
}

:where(.byd-sec) .byd-reason-badge-num,
:where(.byd-sec) .byd-calc-step-num,
:where(.byd-sec) .byd-spotlight-star-tag {
  background: var(--brand-ink);
  color: var(--byd-on-ink, #ffffff);
}

:where(.byd-sec) .byd-reason-badge-num.is-icon {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

:where(.byd-sec) .byd-filter-tabs {
  background: var(--brand-surface-alt);
  border-color: var(--brand-border);
}

:where(.byd-sec) .byd-filter-btn.active,
:where(.byd-sec) .byd-dp-chip.active,
:where(.byd-sec) .byd-tenor-btn.active {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: var(--byd-on-ink, #ffffff);
}

:where(.byd-sec) .byd-dp-chip,
:where(.byd-sec) .byd-tenor-btn,
:where(.byd-sec) .byd-calc-select,
:where(.byd-sec) .byd-input,
:where(.byd-sec) .byd-select,
:where(.byd-sec) .byd-textarea,
:where(.byd-sec) .byd-chat-input {
  background-color: var(--byd-input-bg, #ffffff);
  color: var(--brand-ink);
  border-color: var(--brand-border-strong);
}

:where(.byd-sec) .byd-calc-result-col {
  background: var(--brand-surface-alt);
  border-color: var(--brand-border);
}

:where(.byd-sec) .byd-calc-installment-banner,
:where(.byd-sec) .byd-chat-topbar {
  background: var(--byd-sec-solid, var(--brand-ink));
}

:where(.byd-scheme-dark) :where(.byd-sec) .byd-calc-installment-banner,
:where(.byd-scheme-dark) :where(.byd-sec) .byd-chat-topbar {
  background: rgba(255, 255, 255, 0.08);
}

:where(.byd-sec) .byd-chat-body {
  background: var(--brand-surface-alt);
}

:where(.byd-sec) .byd-step-circle {
  background: var(--byd-sec-solid, var(--byd-card-bg, #ffffff));
  box-shadow: 0 0 0 6px var(--byd-ring, transparent);
}

:where(.byd-scheme-alt) :where(.byd-sec) .byd-step-circle {
  --byd-ring: #f5f6f8;
  background: #ffffff;
}

:where(.byd-scheme-light) :where(.byd-sec) .byd-step-circle {
  --byd-ring: #ffffff;
  background: #ffffff;
}

/* Promo cards follow the palette (dark by default) */
:where(.byd-sec) .byd-promo-card {
  position: relative;
  border: 1px solid var(--brand-border);
}

:where(.byd-sec) .byd-promo-title {
  color: var(--brand-ink);
}

:where(.byd-sec) .byd-promo-desc {
  color: var(--brand-text-muted);
}

:where(.byd-sec) .byd-promo-icon {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

:where(.byd-sec) .byd-offer-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--brand-font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.byd-offer-side :where(.byd-sec) .byd-promo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
}

.byd-offer-side :where(.byd-sec) .byd-promo-icon {
  margin-bottom: 0;
}

:where(.byd-sec) .byd-promo-card:hover {
  background: var(--byd-card-bg, #ffffff);
  border-color: var(--brand-border-strong);
}

/* Bank / partner logos stay on white so logos keep their colours */
:where(.byd-sec) .byd-bank-card {
  background: var(--byd-logo-bg, #ffffff);
  border: 1px solid var(--brand-border);
  text-decoration: none;
}

:where(.byd-sec) .byd-bank-name {
  color: #0b1220;
}

:where(.byd-sec) .byd-bank-perk {
  color: #5b6575;
}

:where(.byd-sec) .byd-bank-logo img {
  transition: filter var(--byd-dur, 300ms) ease, opacity var(--byd-dur, 300ms) ease;
}

.byd-logo-gray-yes :where(.byd-sec) .byd-bank-logo img {
  filter: grayscale(1);
  opacity: 0.7;
}

.byd-logo-gray-yes :where(.byd-sec) .byd-bank-card:hover .byd-bank-logo img {
  filter: none;
  opacity: 1;
}

/* Grid gaps follow the "Jarak Antar Kartu" control */
:where(.byd-sec) :is(.byd-pillars-grid, .byd-reasons-grid, .byd-car-grid, .byd-promo-grid, .byd-bank-grid, .byd-steps-container, .byd-handover-grid) {
  gap: var(--byd-gap, 20px);
}

/* Custom icons from Icon Library / Media */
.byd-custom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.byd-custom-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.byd-custom-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ==========================================================================
   3. WIDGET-SPECIFIC LAYOUTS
   ========================================================================== */

/* Hero */
:where(.byd-sec).byd-sec--hero {
  padding: 0;
  background: #0b0f17;
}

:where(.byd-sec--hero) .byd-sec-inner {
  max-width: none;
}

:where(.byd-sec--hero) .byd-hero-slide {
  overflow: hidden;
  background-position: center right;
}

.byd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: inherit;
  background-repeat: no-repeat;
  will-change: transform;
}

:where(.byd-sec--hero) .byd-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(var(--byd-ov-dir, 90deg),
      var(--byd-ov-a, rgba(7, 10, 16, 0.88)) 0%,
      color-mix(in srgb, var(--byd-ov-a, rgba(7, 10, 16, 0.88)) 70%, transparent) calc(var(--byd-ov-stop, 72%) * 0.5),
      var(--byd-ov-b, rgba(7, 10, 16, 0)) var(--byd-ov-stop, 72%));
}

.byd-ovbottom-yes :where(.byd-sec--hero) .byd-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 10, 16, 0.6) 0%, rgba(7, 10, 16, 0) 35%);
}

:where(.byd-sec--hero) .byd-hero-content {
  z-index: 2;
}

:where(.byd-sec--hero) .byd-hero-actions {
  justify-content: var(--byd-hero-justify, flex-start);
}

:where(.byd-sec--hero) .byd-hero-telemetry {
  justify-content: var(--byd-hero-justify, flex-start);
}

.byd-kenburns-yes .swiper-slide-active .byd-hero-bg {
  animation: byd-kenburns 14s ease-out forwards;
}

@keyframes byd-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

.byd-herotext-up .swiper-slide-active .byd-hero-content > *,
.byd-herotext-fade .swiper-slide-active .byd-hero-content > *,
.byd-herotext-left .swiper-slide-active .byd-hero-content > *,
.byd-herotext-zoom .swiper-slide-active .byd-hero-content > * {
  animation: byd-hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.byd-herotext-up .byd-hero-content > * { --byd-from: translateY(26px); }
.byd-herotext-fade .byd-hero-content > * { --byd-from: none; }
.byd-herotext-left .byd-hero-content > * { --byd-from: translateX(-40px); }
.byd-herotext-zoom .byd-hero-content > * { --byd-from: scale(0.92); }

.swiper-slide-active .byd-hero-content > :nth-child(1) { animation-delay: 0.15s !important; }
.swiper-slide-active .byd-hero-content > :nth-child(2) { animation-delay: 0.27s !important; }
.swiper-slide-active .byd-hero-content > :nth-child(3) { animation-delay: 0.39s !important; }
.swiper-slide-active .byd-hero-content > :nth-child(4) { animation-delay: 0.51s !important; }
.swiper-slide-active .byd-hero-content > :nth-child(5) { animation-delay: 0.63s !important; }

@keyframes byd-hero-in {
  from { opacity: 0; transform: var(--byd-from, translateY(26px)); }
  to { opacity: 1; transform: none; }
}

/* Quick bar */
:where(.byd-sec).byd-sec--quickbar {
  padding: 24px 20px;
}

.byd-qb-overlap-yes :where(.byd-sec).byd-sec--quickbar {
  z-index: 6;
  margin-top: calc(var(--byd-qb-overlap, 48px) * -1);
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

:where(.byd-sec--quickbar) .byd-quick-bar {
  width: 100%;
  margin: 0;
  max-width: none;
  border: 1px solid var(--brand-border);
}

.byd-qb-stack :where(.byd-sec--quickbar) .byd-quick-item {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.elementor-widget:not(.byd-qb-div-yes) :where(.byd-sec--quickbar) .byd-quick-item {
  border: 0 !important;
}

:where(.byd-sec--quickbar) .byd-quick-item {
  text-decoration: none;
  background: transparent;
}

:where(.byd-sec--quickbar) .byd-quick-item + .byd-quick-item {
  border-left: 1px solid var(--brand-border);
}

/* Sales intro */
:where(.byd-sec--intro) .byd-sales-intro-grid {
  grid-template-columns: minmax(0, var(--byd-split, 52%)) minmax(0, 1fr);
}

.byd-media-left :where(.byd-sec--intro) .byd-sales-intro-right {
  order: -1;
}

:where(.byd-sec--intro) .byd-composite-frame.no-card {
  padding-bottom: 0;
}

:where(.byd-sec--intro) .byd-showroom-bg-card {
  transition: transform var(--byd-dur, 400ms) ease;
}

.byd-imgzoom-yes :where(.byd-sec--intro) .byd-composite-frame:hover .byd-showroom-bg-card {
  transform: scale(1.015);
}

/* Pillars: the grid is now just a grid (no legacy strip padding/background) */
:where(.byd-sec) .byd-pillars-grid {
  padding: 0;
  background: none;
  border: 0;
}

/* Pillars layouts */
:where(.byd-sec--pillars) .byd-pillar-card {
  text-decoration: none;
}

.byd-pillar-top :where(.byd-sec--pillars) .byd-pillar-card,
.byd-pillar-center :where(.byd-sec--pillars) .byd-pillar-card {
  flex-direction: column;
}

.byd-pillar-center :where(.byd-sec--pillars) .byd-pillar-card {
  align-items: center;
  text-align: center;
}

/* Reasons */
:where(.byd-sec--reasons) .byd-reasons-cta {
  margin-top: 40px;
}

/* Steps layouts */
:where(.byd-sec--steps) .byd-steps-container::before {
  top: calc(var(--byd-step-size, 56px) / 2 - 1px);
  background: repeating-linear-gradient(90deg, var(--byd-step-line, var(--brand-border-strong)) 0 8px, transparent 8px 14px);
}

.byd-stepline-solid :where(.byd-sec--steps) .byd-steps-container::before {
  background: var(--byd-step-line, var(--brand-border-strong));
}

.elementor-widget:not(.byd-steps-line-yes) :where(.byd-sec--steps) .byd-steps-container::before,
.byd-steps-cards :where(.byd-sec--steps) .byd-steps-container::before {
  display: none;
}

.byd-steps-cards :where(.byd-sec--steps) .byd-step-item {
  align-items: stretch;
  text-align: left;
}

.byd-steps-cards :where(.byd-sec--steps) .byd-step-item {
  position: relative;
}

.byd-steps-cards :where(.byd-sec--steps) .byd-step-circle {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  margin: 0;
  font-size: 15px;
  box-shadow: none;
}

.byd-steps-cards :where(.byd-sec--steps) .byd-step-body {
  padding: 74px 20px 22px;
}

.byd-steps-vertical :where(.byd-sec--steps) .byd-steps-container {
  grid-template-columns: 1fr !important;
  max-width: 760px;
  margin: 0 auto;
  gap: 14px;
}

.byd-steps-vertical :where(.byd-sec--steps) .byd-steps-container::before {
  top: 28px;
  bottom: 28px;
  left: calc(var(--byd-step-size, 56px) / 2 - 1px);
  right: auto;
  width: 2px;
  height: auto;
  background: repeating-linear-gradient(180deg, var(--byd-step-line, var(--brand-border-strong)) 0 8px, transparent 8px 14px);
}

.byd-steps-vertical :where(.byd-sec--steps) .byd-step-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.byd-steps-vertical :where(.byd-sec--steps) .byd-step-circle {
  margin-bottom: 0;
}

:where(.byd-sec--steps) .byd-step-circle .byd-icon,
:where(.byd-sec--steps) .byd-step-circle .byd-custom-icon-img {
  width: 22px;
  height: 22px;
}

/* Lineup extras */
:where(.byd-sec--lineup) .byd-car-xbadge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #ffffff;
  font-family: var(--brand-font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.elementor-widget:not(.byd-floor-yes) :where(.byd-sec--lineup) .byd-car-thumb-wrap {
  background: linear-gradient(180deg, #f3f4f7 0%, #e9ecf1 100%);
}

:where(.byd-sec--lineup) .byd-car-features li span {
  min-width: 0;
}

/* Variant price list (cards + modal) */
:where(.byd-sec) .byd-variants,
.byd-modal-variants .byd-variants {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--brand-border, #e4e7ec);
  border-radius: 12px;
  background: var(--brand-surface-alt, #f5f6f8);
  overflow: hidden;
}

:where(.byd-sec) .byd-variant,
.byd-modal-variants .byd-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

:where(.byd-sec) .byd-variant + .byd-variant,
.byd-modal-variants .byd-variant + .byd-variant {
  border-top: 1px solid var(--brand-border, #e4e7ec);
}

.byd-variant-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.byd-variant-name {
  font-family: var(--brand-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-ink, #0b1220);
}

.byd-variant-note {
  font-size: 12px;
  line-height: 1.35;
  color: var(--brand-text-muted, #5b6575);
}

.byd-variant-price {
  flex-shrink: 0;
  font-family: var(--brand-font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-primary, #e52535);
  white-space: nowrap;
}

.byd-modal-variants {
  margin-bottom: 4px;
}

.byd-modal-variants[hidden] {
  display: none;
}

.byd-modal-variants-title {
  margin: 0 0 10px;
  font-family: var(--brand-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #0b1220;
}

:where(.byd-sec--lineup) .byd-car-thumb-wrap.is-cover {
  padding: 0;
  background: #e9ecf1;
}

:where(.byd-sec--lineup) .byd-car-thumb-wrap.is-cover .byd-car-thumb {
  object-fit: cover;
  object-position: center;
}

:where(.byd-sec--lineup) .byd-price-note {
  margin: 28px auto 0;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--brand-text-muted);
}

/* Spotlight layout */
.byd-spot-center :where(.byd-sec--spotlight) .byd-sales-spotlight-card {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.byd-spot-center :where(.byd-sec--spotlight) .byd-spotlight-name,
.byd-spot-center :where(.byd-sec--spotlight) .byd-spotlight-contact-pills {
  justify-content: center;
}

.byd-spot-center :where(.byd-sec--spotlight) .byd-spotlight-quote {
  padding-left: 0;
  border-left: 0;
}


/* Gallery grid mode */
.byd-handover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Lead form */
.byd-form-left :where(.byd-sec--lead) .byd-lead-form-card {
  order: -1;
}

:where(.byd-sec--lead) .byd-lead-grid.is-single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

:where(.byd-sec--lead) .byd-rep-phone {
  text-decoration: none;
}

/* FAQ */
:where(.byd-sec--faq) .byd-faq-header {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

:where(.byd-sec--faq) .byd-faq-header:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}

:where(.byd-sec--faq) .byd-faq-icon {
  background: var(--brand-surface-alt);
  color: var(--brand-ink);
}

.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-icon {
  position: relative;
}

.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-icon svg {
  display: none;
}

.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-icon::before,
.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--byd-dur, 300ms) ease;
}

.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-icon::after {
  transform: rotate(90deg);
}

.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-item.active .byd-faq-icon {
  transform: none;
}

.byd-faq-icon-plus :where(.byd-sec--faq) .byd-faq-item.active .byd-faq-icon::after {
  transform: rotate(0deg);
}

.byd-faq-cols-2 :where(.byd-sec--faq) .byd-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: none;
}

/* Floating WhatsApp (v3) */
.elementor-widget-byd3_floating_wa .byd-floating-wa-wrap {
  right: var(--byd-fwa-side, 24px);
}

.byd-fwa-left .byd-floating-wa-wrap {
  right: auto !important;
  left: var(--byd-fwa-side, 24px);
  flex-direction: row-reverse;
}

.elementor-widget-byd3_floating_wa:not(.byd-fwa-pulse-yes) .byd-floating-pulse {
  display: none;
}

.byd-floating-wa-link.has-label .byd-floating-3d-disc {
  width: auto !important;
  gap: 8px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
}

.byd-floating-wa-link.has-label .byd-floating-pulse {
  border-radius: 999px;
}

.byd-fwa-label {
  font-family: var(--brand-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.byd-floating-wa-wrap.is-hidden-until-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.byd-floating-wa-wrap.is-hidden-until-scroll.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ==========================================================================
   4. EFFECTS - card hover
   ========================================================================== */

:where(.byd-sec) .byd-hoverable {
  transition:
    transform var(--byd-dur, 300ms) cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow var(--byd-dur, 300ms) cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--byd-dur, 300ms) ease,
    background-color var(--byd-dur, 300ms) ease;
}

.byd-hover-none :where(.byd-sec) .byd-hoverable:hover {
  transform: none;
  box-shadow: none;
}

.byd-hover-lift :where(.byd-sec) .byd-hoverable:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(11, 18, 32, 0.28);
}

.byd-hover-scale :where(.byd-sec) .byd-hoverable:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px -20px rgba(11, 18, 32, 0.25);
}

.byd-hover-glow :where(.byd-sec) .byd-hoverable:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary), 0 20px 44px -16px color-mix(in srgb, var(--brand-primary) 55%, transparent);
}

.byd-hover-accent :where(.byd-sec) .byd-hoverable {
  position: relative;
  overflow: hidden;
}

.byd-hover-accent :where(.byd-sec) .byd-hoverable::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--byd-dur, 350ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.byd-hover-accent :where(.byd-sec) .byd-hoverable:hover::after {
  transform: scaleX(1);
}

.byd-hover-tilt :where(.byd-sec) .byd-hoverable:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(11, 18, 32, 0.3);
}

/* Image zoom on hover (cards with images) */
:where(.byd-sec) .byd-img-zoom img {
  transition: transform calc(var(--byd-dur, 300ms) * 2) cubic-bezier(0.22, 1, 0.36, 1);
}

.elementor-widget:not(.byd-imgzoom-yes) :where(.byd-sec) .byd-img-zoom img {
  transform: none !important;
}

.byd-imgzoom-yes :where(.byd-sec) .byd-hoverable:hover .byd-img-zoom img,
.byd-imgzoom-yes :where(.byd-sec) .byd-img-zoom:hover img {
  transform: scale(1.06);
}

:where(.byd-sec) .byd-handover-photo-box,
:where(.byd-sec) .byd-showroom-photo-wrap {
  overflow: hidden;
}

:where(.byd-sec) .byd-testimonial-client-img {
  object-position: center 22%;
}

/* ==========================================================================
   5. EFFECTS - entrance animation (JS adds .byd-anim-ready, then .is-in per item)
   ========================================================================== */

.byd-anim-ready .byd-anim-item:not(.is-done) {
  transition:
    opacity var(--byd-anim-dur, 700ms) cubic-bezier(0.22, 1, 0.36, 1) var(--byd-delay, 0ms),
    transform var(--byd-anim-dur, 700ms) cubic-bezier(0.22, 1, 0.36, 1) var(--byd-delay, 0ms) !important;
}

.byd-anim-ready .byd-anim-item:not(.is-in) {
  opacity: 0;
}

.byd-anim-ready[data-byd-anim="fade-up"] .byd-anim-item:not(.is-in) { transform: translateY(28px); }
.byd-anim-ready[data-byd-anim="zoom"] .byd-anim-item:not(.is-in) { transform: scale(0.92); }
.byd-anim-ready[data-byd-anim="slide-left"] .byd-anim-item:not(.is-in) { transform: translateX(40px); }
.byd-anim-ready[data-byd-anim="slide-right"] .byd-anim-item:not(.is-in) { transform: translateX(-40px); }
.byd-anim-ready[data-byd-anim="flip"] .byd-anim-item:not(.is-in) { transform: perspective(800px) rotateX(-18deg) translateY(16px); transform-origin: top center; }

.elementor-editor-active .byd-anim-ready .byd-anim-item {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .byd-anim-ready .byd-anim-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .byd-kenburns-yes .swiper-slide-active .byd-hero-bg,
  .swiper-slide-active .byd-hero-content > * {
    animation: none !important;
  }
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .byd-faq-cols-2 :where(.byd-sec--faq) .byd-faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :where(.byd-sec--intro) .byd-sales-intro-grid {
    grid-template-columns: 1fr;
  }

  .byd-media-left :where(.byd-sec--intro) .byd-sales-intro-right {
    order: 0;
  }
}

@media (max-width: 767px) {
  .byd-sec {
    padding-left: 16px;
    padding-right: 16px;
  }

  :where(.byd-sec--hero) .byd-hero-overlay {
    --byd-ov-dir: 0deg;
    --byd-ov-stop: 85%;
  }

  .byd-qb-overlap-yes :where(.byd-sec).byd-sec--quickbar {
    margin-top: calc(var(--byd-qb-overlap, 40px) * -1);
  }

  :where(.byd-sec--quickbar) .byd-quick-item + .byd-quick-item {
    border-left: 0;
  }

  :where(.byd-sec--quickbar) .byd-quick-item:nth-child(even) {
    border-left: 1px solid var(--brand-border);
  }

  :where(.byd-sec--quickbar) .byd-quick-item:nth-child(n+3) {
    border-top: 1px solid var(--brand-border);
  }

  .byd-handover-grid {
    grid-template-columns: 1fr;
  }

  :where(.byd-sec--steps) .byd-steps-container::before {
    top: 28px;
    bottom: 28px;
    left: calc(var(--byd-step-size, 56px) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--byd-step-line, var(--brand-border-strong)) 0 8px, transparent 8px 14px);
  }

  .byd-steps-cards :where(.byd-sec--steps) .byd-step-item {
    flex-direction: column;
  }

  .elementor-widget-byd3_floating_wa .byd-floating-wa-wrap {
    right: var(--byd-fwa-side, 16px) !important;
  }

  .byd-fwa-left .byd-floating-wa-wrap {
    left: var(--byd-fwa-side, 16px) !important;
  }

  .byd-fwa-tipm-yes .byd-floating-tooltip {
    display: flex !important;
  }

  .byd-offer-side :where(.byd-sec) .byd-promo-card,
  :where(.byd-sec--promo) .byd-promo-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }
}

/* Chat user bubble (v3 JS) */
.byd-chat-msg.byd-msg-user {
  align-items: flex-end;
}

.byd-msg-bubble-user {
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}
