/* Homepage conversion flow — advisor landing, not HQ clone.
   References: omodajaecoo.com.my (hero photography), jaecoomalaysia.com (dealer journey + offer rail). */

body.page-home {
  --flow-gold: #d4b483;
  --flow-ink: #121410;
  --flow-paper: #f3eee6;
  --flow-paper-2: #e7dfd2;
}

body.page-home .section {
  min-height: 0;
  display: block;
  padding: 64px 24px;
}

body.page-home .section__inner,
body.page-home .section__inner--wide {
  margin-left: auto;
  margin-right: auto;
}

body.page-home .hero-dock {
  position: relative;
  z-index: 6;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}

body.page-home .hero-dock__card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: rgba(12, 14, 13, 0.88);
  border: 1px solid rgba(212, 180, 131, 0.45);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

body.page-home .hero-dock__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flow-gold);
  margin-bottom: 8px;
}

body.page-home .hero-dock__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 8px;
}

body.page-home .hero-dock__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
  max-width: 54ch;
}

body.page-home .hero-dock__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}

body.page-home .hero-dock__actions .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 12px 18px;
}

.flow-ticker {
  --flow-gold: #d4b483;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #101412;
  margin-top: 0;
}

body.page-home .flow-ticker {
  margin-top: 28px;
}

.flow-ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 12px 0;
  animation: flow-ticker 32s linear infinite;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.flow-ticker__track p {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  white-space: nowrap;
}

.flow-ticker__track span {
  color: var(--flow-gold);
}

@keyframes flow-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-ticker__track {
    animation: none;
  }

  .areas-ticker .flow-ticker__track {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .areas-ticker .flow-ticker__track p {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }

  .areas-ticker .flow-ticker__track p + p {
    display: none;
  }
}

/* Advisor identity — portrait as-authored, cluster centered (photo left of copy). */
body.page-home .section--about {
  padding: 56px 24px 48px;
  background: linear-gradient(180deg, #101412 0%, var(--canvas) 100%);
}

body.page-home .section--about .section__inner--wide {
  justify-content: center;
}

body.page-home .about-grid {
  display: grid;
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

body.page-home .about-photo__frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 180, 131, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

body.page-home .about-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

body.page-home .about-content .section__title {
  font-size: clamp(26px, 3.4vw, 40px);
}

body.page-home .trust-badges {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

body.page-home .trust-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
  align-items: center;
}

/* Lineup / budget matrix */
body.page-home .lineup {
  padding: 48px 24px 72px;
  background: #141816;
}

body.page-home .lineup .section__title {
  font-size: clamp(28px, 4vw, 48px);
}

body.page-home .lineup-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
}

body.page-home .lineup-filters button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}

body.page-home .lineup-filters button.is-active {
  background: var(--flow-gold);
  border-color: var(--flow-gold);
  color: var(--flow-ink);
}

body.page-home .lineup__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.page-home .lineup-card {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
}

body.page-home .lineup-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 180, 131, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body.page-home .lineup-card__media {
  aspect-ratio: 16 / 9;
}

body.page-home .lineup-card__price {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
}

body.page-home .lineup-card__save {
  color: var(--flow-gold);
  font-size: 12px;
}

body.page-home .lineup-card.is-filtered-out {
  display: none;
}

/* Promo — lineup Promotion button opens a full-page package panel */

dialog.promo-panel {
  /* UA dialog is width:fit-content — one short row (J5 EV) shrinks the whole panel */
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #101412;
  color: #fff;
}

dialog.promo-panel::backdrop {
  background: #0a0c0b;
}

.promo-panel__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 20px clamp(20px, 4vw, 48px) 48px;
  overflow: auto;
  box-sizing: border-box;
}

dialog.promo-panel .promo-list,
dialog.promo-panel .promo-featured {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

dialog.promo-panel .promo-item {
  width: 100%;
}

.promo-panel__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -8px 12px;
  padding: 8px 8px 12px;
  background: #101412;
}

.promo-panel__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

dialog.promo-panel .section__title {
  margin: 0;
  color: #fff;
}

dialog.promo-panel .section__text--promo {
  color: rgba(255, 255, 255, 0.7);
  max-width: 1100px;
  margin: 0 auto 20px;
  text-align: left;
}

body.page-home .promo-layout {
  max-width: 1100px;
  margin-inline: auto;
  text-align: left;
}

body.page-home .promo-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

body.page-home .promo-header .section__title,
body.page-home .promo-header .section__text--promo {
  margin-bottom: 0;
  max-width: none;
}

body.page-home .promo-featured-card {
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  border-radius: 22px;
  box-shadow: none;
  border: 1px solid rgba(212, 180, 131, 0.28);
  background: linear-gradient(90deg, #1a1610 0%, #161a18 55%);
}

body.page-home .promo-featured-card__save {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--flow-gold);
}

dialog.promo-panel .promo-list-hint {
  margin: 28px 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

dialog.promo-panel .promo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

dialog.promo-panel .promo-item {
  background: #151917;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

dialog.promo-panel .promo-item[open] {
  border-color: rgba(212, 180, 131, 0.45);
  background: #1a1814;
}

dialog.promo-panel .promo-item__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: 12px 20px;
  align-items: center;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

dialog.promo-panel .promo-item__summary::-webkit-details-marker {
  display: none;
}

dialog.promo-panel .promo-item__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: #fff;
}

dialog.promo-panel .promo-item__badge {
  justify-self: start;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

dialog.promo-panel .promo-item__save {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--flow-gold);
  text-align: right;
}

dialog.promo-panel .promo-item__save.has-from .promo-item__from-price {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--flow-gold);
  line-height: 1.2;
}

dialog.promo-panel .promo-item__save.has-from .promo-item__save-line {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}

dialog.promo-panel .promo-item__body {
  padding: 0 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

dialog.promo-panel .promo-tally {
  margin: 16px 0 8px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}

dialog.promo-panel .promo-tally__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

dialog.promo-panel .promo-tally__row--less {
  color: #e8c48a;
}

dialog.promo-panel .promo-tally__row--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 180, 131, 0.35);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--flow-gold);
}

dialog.promo-panel .promo-item__includes {
  margin: 16px 0 20px;
  padding-left: 1.15em;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

dialog.promo-panel .promo-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

dialog.promo-panel .promo-item__actions .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 720px) {
  dialog.promo-panel .promo-item__summary {
    grid-template-columns: 1fr auto;
  }

  dialog.promo-panel .promo-item__badge {
    grid-column: 1;
    grid-row: 2;
  }

  dialog.promo-panel .promo-item__save {
    grid-column: 1 / -1;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }
}

/* Why = 4+4 tile board */
body.page-home .section--why {
  background: var(--canvas);
  padding: 72px 24px;
}

body.page-home .why-layout {
  max-width: 1280px;
}

body.page-home .why-header {
  text-align: left;
  max-width: 720px;
  margin-bottom: 36px;
}

body.page-home .why-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

body.page-home .why-column {
  background: #1b211e;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-home .why-column--amran {
  background: linear-gradient(180deg, #241e16 0%, #1b211e 100%);
  border-color: rgba(212, 180, 131, 0.28);
}

body.page-home .why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.page-home .why-card {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  border-radius: 14px;
  min-height: 148px;
  align-items: flex-start;
}

body.page-home .why-card:hover,
body.page-home .why-column--amran .why-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(212, 180, 131, 0.35);
}

/* Journey as numbered rail */
body.page-home .home-journey {
  min-height: 0;
  padding: 72px 24px;
  background: #101412;
  display: block;
}

body.page-home .home-journey .section__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}

body.page-home .section__text--journey {
  margin-left: 0;
}

body.page-home .home-journey__steps {
  position: relative;
  gap: 16px;
}

body.page-home .home-journey__steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flow-gold), transparent);
}

body.page-home .home-journey__step {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 20px 22px;
}

body.page-home .home-journey__num {
  font-size: 28px;
  letter-spacing: 0;
}

body.page-home .home-journey__cta {
  justify-content: flex-start;
}

/* Location cinema */
body.page-home .section--location {
  padding: 0;
  background: #0a0c0b;
}

body.page-home .location-layout {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  min-height: 520px;
  gap: 0;
}

body.page-home .location-card {
  margin: 0;
  padding: 48px 36px;
  background: #141816;
  border-radius: 0;
  box-shadow: none;
}

body.page-home .location-map,
body.page-home .location-map iframe {
  min-height: 520px;
  height: 100%;
  border-radius: 0;
}

body.page-home .location-drive {
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* Conversion paper band */
body.page-home .section--contact,
body.page-home .section--areas {
  background: var(--flow-paper);
  color: var(--flow-ink);
  padding: 64px 24px;
}

body.page-home .section--contact .section__eyebrow,
body.page-home .section--areas .section__eyebrow {
  color: #7a6550;
}

body.page-home .section--contact .section__title,
body.page-home .section--areas .section__title,
body.page-home .areas-faq__title {
  color: var(--flow-ink);
}

body.page-home .section--contact .section__text,
body.page-home .section--areas .section__text,
body.page-home .section--contact .contact-secondary,
body.page-home .section--contact .contact-secondary a,
body.page-home .faq-item__a {
  color: #4a463f;
}

body.page-home .section--contact .btn--dark {
  background: var(--flow-ink);
  color: #fff;
  border: none;
}

body.page-home .areas-serve {
  text-align: center;
  margin-bottom: 8px;
}

body.page-home .areas-serve .section__title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}

body.page-home .areas-serve .section__text {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
}

body.page-home .areas-serve__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.page-home .areas-ticker {
  margin: 28px -24px 0;
}

body.page-home .areas-ticker .flow-ticker__track {
  animation-duration: 36s;
}

body.page-home .areas-ticker:hover .flow-ticker__track {
  animation-play-state: paused;
}

body.page-home .section--areas .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-home .areas-faq {
  margin-top: 36px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: none;
}

body.page-home .faq-item {
  border-bottom-color: rgba(18, 20, 16, 0.1);
}

body.page-home .faq-item__q {
  color: var(--flow-ink);
}

@media (max-width: 960px) {
  body.page-home .hero-dock {
    margin-top: 20px;
  }

  body.page-home .hero-dock__card,
  body.page-home .about-grid,
  body.page-home .promo-header,
  body.page-home .why-columns,
  body.page-home .why-cards,
  body.page-home .location-layout {
    grid-template-columns: 1fr;
  }

  body.page-home .hero-dock__card {
    min-width: 0;
    padding: 22px 18px;
  }

  body.page-home .hero-dock__title,
  body.page-home .hero-dock__text {
    overflow-wrap: anywhere;
  }

  body.page-home .hero-dock__text {
    max-width: none;
  }

  body.page-home .hero-dock__actions {
    min-width: 0;
  }

  body.page-home .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
    max-width: 400px;
  }

  body.page-home .about-photo {
    max-width: 220px;
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  body.page-home .about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.page-home .about-content .section__title,
  body.page-home .about-content .section__text,
  body.page-home .home-journey .section__inner,
  body.page-home .why-header,
  body.page-home .promo-layout {
    text-align: center;
  }

  body.page-home .trust-badges {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  body.page-home .trust-badge {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
    border-radius: 14px;
    padding: 12px 16px;
  }

  body.page-home .about-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body.page-home .about-cta .btn {
    width: 100%;
    max-width: none;
  }

  body.page-home .home-journey__steps::before {
    display: none;
  }

  body.page-home .lineup__grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-home .promo-featured-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body.page-home .lineup__grid {
    grid-template-columns: 1fr;
  }

  body.page-home .about-photo {
    max-width: 240px;
  }
}
