/* ===== REITs Page ===== */
.page-reits {
  background: var(--color-white);
}

/* Hero */
.reit-hero {
  position: relative;
  background: #050230;
  color: var(--color-white);
  padding: calc(var(--header-height) + 48px) 0 64px;
  overflow: hidden;
  min-height: 420px;
}

.reit-hero__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
}

.reit-hero__media {
  min-height: 340px;
  background-image: url('https://assets.cmcmarkets.com/invest-sg/reits-hero.gif');
  background-repeat: no-repeat;
  background-position: calc(50% + 20px) center;
  background-size: 420px auto;
}

.reit-hero__text h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.reit-hero__text p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
  color: var(--color-white);
  margin-bottom: 16px;
}

.reit-hero__text p:last-child {
  margin-bottom: 0;
}

/* Section common */
.reit-section {
  padding: 80px 0;
}

.reit-section--white {
  background: var(--color-white);
}

.reit-section--cloud {
  background: var(--color-gray-bg);
}

.reit-section--learn {
  background: #050532 url('https://assets.cmcmarkets.com/invest-sg/reits-building-blocks.png') no-repeat right top;
  color: var(--color-white);
  min-height: 600px;
}

.reit-section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.15;
}

.reit-section__title--left {
  text-align: left;
}

.reit-section--learn .reit-section__title {
  color: var(--color-white);
}

/* Why invest — desktop 3-column */
.reit-why__desktop {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

.reit-why__col {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 32px;
}

.reit-why__col--left {
  text-align: right;
}

.reit-why__col--left .reit-why__item {
  padding-right: 16px;
}

.reit-why__item h3,
.reit-why__slide h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.reit-why__item p,
.reit-why__slide p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.reit-why__video {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 320px;
  margin: 0 auto;
}

.reit-why__video video {
  width: 100%;
  max-height: 800px;
}

.reit-why__mobile {
  display: none;
}

.reit-why__carousel {
  overflow: hidden;
  margin-bottom: 24px;
}

.reit-why__track {
  display: flex;
  transition: transform 0.4s ease;
}

.reit-why__slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 0 16px;
}

.reit-why__mobile-video {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.reit-why__mobile-video video {
  width: 100%;
  max-width: 266px;
}

.reit-why__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.reit-why__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
}

.reit-why__dots button.active {
  background: var(--color-accent);
}

/* Exchange tabs */
.reit-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.reit-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reit-tab:hover {
  background: #f5f6fa;
}

.reit-tab.active {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.35);
}

.reit-tab-panel {
  display: none;
}

.reit-tab-panel.active {
  display: block;
}

.reit-exchange__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.reit-exchange__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.reit-exchange__text p:last-child {
  margin-bottom: 0;
}

.reit-exchange__visual {
  width: 100%;
  max-height: 295px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1;
}

.reit-exchange__visual--local {
  background-image: url('https://assets.cmcmarkets.com/images/cmc-invest-local-reits.png');
}

.reit-exchange__visual--global {
  background-image: url('https://assets.cmcmarkets.com/images/cmc-invest-global-reits.png');
}

/* Steps */
.reit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

.reit-step {
  position: relative;
  padding-top: 36px;
}

.reit-step__curve {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.reit-step__shroud--v {
  display: block;
  width: 75px;
  margin-left: auto;
  padding-right: 36px;
}

.reit-step__shroud--h {
  display: none;
  width: 100%;
  margin-top: -4px;
}

.reit-step__arrow {
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reit-step__arrow img {
  width: 22px;
  transform: rotate(-90deg);
}

.reit-step__pill {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
  min-height: 160px;
  padding: 24px 28px 24px 48px;
  border-radius: 999px;
  color: var(--color-white);
}

.reit-step--blue .reit-step__pill {
  background: var(--color-primary);
}

.reit-step--dark .reit-step__pill {
  background: var(--color-dark-alt);
}

.reit-step--rose .reit-step__pill {
  background: var(--color-accent);
}

.reit-step__num {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.reit-step__pill h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 6px;
}

.reit-step__pill p {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.reit-steps__cta {
  text-align: center;
  margin-top: 40px;
}

/* What Are REITs */
.reit-learn__content {
  max-width: 560px;
  padding: 20px 0;
  backdrop-filter: blur(8px);
}

.reit-learn__content p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.reit-learn__content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-white);
}

.reit-learn__content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.reit-learn__content li {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.reit-learn__content .btn {
  margin-top: 12px;
}

/* App showcase */
.reit-app__inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

.reit-app__text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.reit-app__text > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.reit-app__features {
  margin: 20px 0 24px;
}

.reit-app__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 16px;
}

.reit-app__features img {
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.reit-app__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.reit-app__badges img {
  height: 45px;
  width: auto;
}

.reit-app__legal {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.reit-app__visual {
  display: flex;
  justify-content: center;
}

.reit-app__visual--desktop {
  width: 100%;
  max-width: 520px;
}

.reit-app__visual--mobile {
  display: none;
  width: 300px;
  margin: 0 auto;
}

/* Learn cards */
.reit-cards__controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.reit-cards__arrow {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-bg);
  transition: background var(--transition);
}

.reit-cards__arrow:hover {
  background: #e2e6ef;
}

.reit-cards__arrow img {
  width: 20px;
}

.reit-cards__viewport {
  overflow: hidden;
}

.reit-cards__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.reit-card {
  flex: 0 0 calc(33.333% - 16px);
  min-height: 550px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.reit-card:hover {
  color: var(--color-white);
}

.reit-card--dark {
  background: var(--color-dark);
}

.reit-card--blue {
  background: var(--color-primary);
}

.reit-card--rose {
  background: var(--color-accent);
  color: var(--color-text);
}

.reit-card--rose .reit-card__footer {
  background: var(--color-dark-alt);
  color: var(--color-white);
}

.reit-card__body {
  padding: 28px 24px 0;
}

.reit-card__body h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.reit-card__body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.reit-card--rose .reit-card__body p {
  color: rgba(26, 26, 46, 0.85);
}

.reit-card__image {
  flex: 1;
  margin: 24px 32px 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
}

.reit-card__footer {
  display: block;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--color-dark-alt);
}

.reit-cards__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.reit-cards__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
}

.reit-cards__dots button.active {
  background: rgba(0, 0, 0, 0.75);
}

/* FAQ */
.reit-faq__subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-light);
  margin-top: -24px;
  margin-bottom: 40px;
}

.reit-faq__list {
  max-width: 900px;
  margin: 0 auto;
}

.reit-faq__item {
  border-bottom: 1px solid #e0e4ed;
}

.reit-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 40px 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  position: relative;
  cursor: pointer;
}

.reit-faq__question img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.reit-faq__item.is-open .reit-faq__question img {
  transform: translateY(-50%) rotate(180deg);
}

.reit-faq__answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.reit-faq__item.is-open .reit-faq__answer {
  display: block;
}

.reit-faq__answer ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
}

.reit-faq__answer li {
  margin-bottom: 6px;
}

/* Pre-footer */
.reit-prefooter {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 24px 0;
}

.reit-prefooter__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.reit-prefooter__icon {
  width: 70px;
  flex-shrink: 0;
}

.reit-prefooter__text {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.reit-prefooter__badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reit-prefooter__badges img {
  width: 135px;
}

/* Responsive */
@media (max-width: 1024px) {
  .reit-why__desktop {
    display: none;
  }

  .reit-why__mobile {
    display: block;
  }

  .reit-exchange__inner,
  .reit-app__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reit-section--learn {
    background-size: 280px auto;
    background-position: right top;
  }

  .reit-steps {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .reit-step__arrow {
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
  }

  .reit-step__arrow img {
    transform: none;
  }

  .reit-step__shroud--v {
    display: none;
  }

  .reit-step__shroud--h {
    display: block;
  }

  .reit-step__pill {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 36px 24px 24px;
  }

  .reit-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .reit-hero__layout {
    grid-template-columns: 1fr;
  }

  .reit-hero__media {
    order: -1;
    min-height: 280px;
    background-position: center;
    background-size: 320px auto;
    border-bottom: 4px solid var(--color-accent);
  }

  .reit-section {
    padding: 60px 0;
  }

  .reit-tab {
    font-size: 13px;
    padding: 8px 12px;
  }

  .reit-section--learn {
    background-image: none;
    min-height: auto;
  }

  .reit-app__visual--desktop {
    display: none;
  }

  .reit-app__visual--mobile {
    display: block;
  }

  .reit-app__visual {
    order: -1;
    margin-bottom: 24px;
  }

  .reit-card {
    flex: 0 0 100%;
  }

  .reit-cards__dots {
    display: flex;
  }

  .reit-cards__controls {
    justify-content: center;
  }

  .reit-prefooter__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .reit-hero__media {
    background-size: 280px auto;
  }

  .reit-exchange__visual {
    max-height: 240px;
  }
}
