/*
 * WDO Imóveis — Programas / Mapa de possibilidades
 *
 * Composition only. Shared tokens, accessibility, accordion behavior and
 * Motion Foundation remain in canonical assets. Every selector is scoped to
 * the stable Programas namespace.
 */

.wdo-page--programas {
  --programas-gutter: max(24px, calc((100vw - 1180px) / 2));
  --programas-rule: rgba(1, 37, 60, .2);
  --programas-rule-light: rgba(255, 255, 255, .28);
  --programas-enter: cubic-bezier(.25, .46, .45, .94);
  background: var(--wdo-white);
  color: var(--wdo-ink);
}

.wdo-page--programas button,
.wdo-page--programas a {
  touch-action: manipulation;
}

.wdo-page--programas button:focus-visible,
.wdo-page--programas a:focus-visible {
  outline: 3px solid var(--wdo-burnt-terracotta);
  outline-offset: 3px;
}

.wdo-page--programas .wdo-btn,
.wdo-page--programas .btn {
  min-block-size: 50px;
  border-radius: 4px;
  box-shadow: none;
}

@keyframes wdo-programas-hero-media-enter {
  from {
    opacity: .9;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wdo-programas-hero-rail-enter {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Hero: movement comes from the photographic field and route rail, not autoplay. */
.wdo-page--programas .wdo-page-hero {
  position: relative;
  display: grid;
  min-block-size: 100svh;
  overflow: hidden;
  background: var(--wdo-petrol-blue);
  color: #fff;
}

.wdo-page--programas .wdo-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-block-size: 100svh;
  padding: 0;
}

.wdo-page--programas .wdo-page-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-inline-size: 0;
  padding: calc(var(--header-height) + clamp(64px, 8vw, 112px)) clamp(34px, 4.5vw, 72px) clamp(72px, 9vw, 128px) var(--programas-gutter);
  background: var(--wdo-petrol-blue);
}

.wdo-page--programas .wdo-page-hero__content::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: clamp(8px, .8vw, 13px);
  background: var(--wdo-burnt-terracotta);
  content: '';
  transform-origin: top;
  animation: wdo-programas-hero-rail-enter 1050ms var(--programas-enter) both;
}

.wdo-page--programas .wdo-page-hero__content .wdo-widget__eyebrow {
  margin-block-end: clamp(18px, 2.4vw, 32px);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.wdo-page--programas .wdo-page-hero__content .wdo-widget__title {
  max-inline-size: 14ch;
  margin: 0;
  color: #fff;
  font-size: var(--type-heading-1);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.wdo-page--programas .wdo-page-hero__content .wdo-widget__text {
  max-inline-size: 44ch;
  margin-block-start: clamp(26px, 3vw, 42px);
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
}

.wdo-page--programas .wdo-page-hero__content .wdo-widget__text p {
  color: inherit;
}

.wdo-page--programas .wdo-page-hero__content .wdo-widget__actions {
  margin-block-start: clamp(28px, 3.4vw, 44px);
}

.wdo-page--programas .wdo-page-hero__media {
  position: relative;
  min-block-size: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #173d52;
  box-shadow: none;
}

.wdo-page--programas .wdo-page-hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 37, 60, .24), transparent 36%),
    linear-gradient(0deg, rgba(1, 37, 60, .16), transparent 45%);
  content: '';
  pointer-events: none;
}

.wdo-page--programas .wdo-page-hero__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 100% center;
  animation: wdo-programas-hero-media-enter 1200ms var(--programas-enter) both;
}

/* The existing two-program summary belongs directly after the hero. */
.wdo-page--programas .wdo-program-cards {
  display: grid;
  align-items: center;
  min-block-size: 100svh;
  background: #fff;
}

.wdo-page--programas .wdo-program-cards > .wdo-widget__inner {
  width: min(100% - 48px, 1180px);
}

.wdo-page--programas .wdo-program-card:nth-child(odd) .wdo-text-link {
  color: #fff;
}

.wdo-page--programas .wdo-program-card:nth-child(even) .wdo-text-link {
  color: var(--wdo-burnt-terracotta);
}

/* Possibility map: each overview is one stage of orientation, not a floating card. */
.wdo-page--programas .wdo-program-overview {
  position: relative;
  display: grid;
  align-items: center;
  min-block-size: 100svh;
  overflow: hidden;
}

.wdo-page--programas .wdo-program-overview::before {
  position: absolute;
  inset-block-start: clamp(54px, 7vw, 96px);
  inset-inline-end: var(--programas-gutter);
  inline-size: clamp(170px, 19vw, 280px);
  aspect-ratio: 1300 / 530;
  background: url('../../images/logos/logo-simples-preto.png') center / contain no-repeat;
  content: '';
  opacity: .055;
  pointer-events: none;
}

.wdo-page--programas .wdo-program-overview--petrol::before {
  background-image: url('../../images/logos/logo-simples-branco.png');
  opacity: .075;
}

.wdo-page--programas .wdo-program-overview__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: clamp(54px, 8vw, 126px);
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  padding-block: clamp(96px, 12vw, 160px);
}

.wdo-page--programas .wdo-program-overview__grid > div:first-child {
  max-inline-size: 690px;
}

.wdo-page--programas .wdo-program-overview .wdo-widget__eyebrow,
.wdo-page--programas .wdo-credit-guidance .wdo-widget__eyebrow,
.wdo-page--programas .wdo-final-cta .wdo-widget__eyebrow {
  margin-block-end: clamp(16px, 2vw, 26px);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.wdo-page--programas .wdo-program-overview .wdo-widget__title,
.wdo-page--programas .wdo-credit-guidance .wdo-widget__title,
.wdo-page--programas .wdo-related-properties > .wdo-widget__inner > .wdo-widget__title,
.wdo-page--programas .wdo-faq > .wdo-widget__inner > .wdo-widget__title,
.wdo-page--programas .wdo-final-cta .wdo-widget__title {
  max-inline-size: 15ch;
  margin: 0;
  font-size: var(--type-heading-2);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.wdo-page--programas .wdo-program-overview .wdo-widget__text {
  max-inline-size: 56ch;
  margin-block-start: clamp(28px, 3.5vw, 46px);
  color: var(--wdo-ink);
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  line-height: 1.8;
}

.wdo-page--programas .wdo-program-overview .wdo-widget__text p {
  color: inherit;
}

.wdo-page--programas .wdo-program-overview--petrol .wdo-widget__text {
  color: #fff;
}

.wdo-page--programas .wdo-program-overview__list {
  position: relative;
  border: 0;
  border-block: 1px solid var(--programas-rule);
  border-radius: 0;
  padding: clamp(30px, 4.2vw, 54px);
  color: var(--wdo-ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
}

.wdo-page--programas .wdo-program-overview__list::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 5px;
  background: var(--wdo-burnt-terracotta);
  content: '';
}

.wdo-page--programas .wdo-program-overview--white .wdo-program-overview__list {
  color: #fff;
  background: var(--wdo-petrol-blue);
}

.wdo-page--programas .wdo-program-overview--white .wdo-program-overview__list h3,
.wdo-page--programas .wdo-program-overview--white .wdo-program-overview__list li {
  color: #fff;
}

.wdo-page--programas .wdo-program-overview--petrol .wdo-program-overview__list {
  background: #fff;
}

.wdo-page--programas .wdo-program-overview__list h3 {
  margin: 0 0 26px;
  color: var(--wdo-petrol-blue);
  font-size: var(--type-heading-3);
  line-height: 1.12;
}

.wdo-page--programas .wdo-program-overview__list ul {
  gap: 0;
}

.wdo-page--programas .wdo-program-overview__list li {
  min-block-size: 48px;
  border-block-start: 1px solid rgba(1, 37, 60, .14);
  padding: 13px 0 13px 28px;
  color: var(--wdo-ink);
  line-height: 1.5;
}

.wdo-page--programas .wdo-program-overview__list li:first-child {
  border-block-start: 0;
}

.wdo-page--programas .wdo-program-overview__list li::before {
  inset-block-start: 13px;
}

.wdo-page--programas .wdo-program-overview--white {
  background: #fff;
}

.wdo-page--programas .wdo-program-overview--linen {
  background: var(--wdo-stone-linen);
}

.wdo-page--programas .wdo-program-overview--petrol {
  background: var(--wdo-petrol-blue);
  color: #fff;
}

.wdo-page--programas .wdo-program-overview--petrol .wdo-widget__eyebrow,
.wdo-page--programas .wdo-program-overview--petrol .wdo-widget__title,
.wdo-page--programas .wdo-program-overview--petrol .wdo-widget__text {
  color: #fff;
}

/* Credit guidance interrupts the route with a high-contrast advisory field. */
.wdo-page--programas .wdo-credit-guidance {
  position: relative;
  display: grid;
  align-items: center;
  min-block-size: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--wdo-burnt-terracotta);
  text-align: left;
}

.wdo-page--programas .wdo-credit-guidance::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 24%;
  background: var(--wdo-petrol-blue);
  content: '';
  pointer-events: none;
}

.wdo-page--programas .wdo-credit-guidance .wdo-widget__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1180px);
  max-width: none;
  padding-block: clamp(88px, 10vw, 136px);
}

.wdo-page--programas .wdo-credit-guidance .wdo-widget__eyebrow,
.wdo-page--programas .wdo-credit-guidance .wdo-widget__title,
.wdo-page--programas .wdo-credit-guidance .wdo-widget__text {
  color: #fff;
}

.wdo-page--programas .wdo-credit-guidance .wdo-widget__text {
  max-inline-size: 58ch;
  margin-block-start: 30px;
  font-size: clamp(1rem, 1.1vw, 1.13rem);
  line-height: 1.78;
}

.wdo-page--programas .wdo-credit-guidance .wdo-widget__text p {
  color: inherit;
}

.wdo-page--programas .wdo-credit-guidance .wdo-widget__actions {
  justify-content: flex-start;
}

.wdo-page--programas .wdo-credit-guidance .wdo-btn--primary,
.wdo-page--programas .wdo-credit-guidance .btn--primary,
.wdo-page--programas .wdo-final-cta .wdo-btn--primary,
.wdo-page--programas .wdo-final-cta .btn--primary {
  border-color: #fff;
  color: var(--wdo-petrol-blue);
  background: #fff;
  box-shadow: none;
}

.wdo-page--programas .wdo-credit-guidance .wdo-btn--primary:hover,
.wdo-page--programas .wdo-credit-guidance .btn--primary:hover,
.wdo-page--programas .wdo-final-cta .wdo-btn--primary:hover,
.wdo-page--programas .wdo-final-cta .btn--primary:hover {
  border-color: var(--wdo-stone-linen);
  color: var(--wdo-petrol-blue);
  background: var(--wdo-stone-linen);
}

.wdo-page--programas .wdo-credit-guidance .wdo-btn--primary:focus-visible,
.wdo-page--programas .wdo-credit-guidance .btn--primary:focus-visible,
.wdo-page--programas .wdo-final-cta .wdo-btn--primary:focus-visible,
.wdo-page--programas .wdo-final-cta .btn--primary:focus-visible {
  outline-color: var(--wdo-petrol-blue);
}

/* Related catalogue is calmer: evidence after orientation. */
.wdo-page--programas .wdo-related-properties {
  display: grid;
  align-items: center;
  min-block-size: 100svh;
  background: var(--wdo-stone-linen);
}

.wdo-page--programas .wdo-related-properties > .wdo-widget__inner {
  width: min(100% - 48px, 1180px);
  padding-block: clamp(96px, 11vw, 148px);
}

.wdo-page--programas .wdo-related-properties > .wdo-widget__inner > .wdo-widget__title {
  margin-block-end: clamp(48px, 6vw, 78px);
  color: var(--wdo-petrol-blue);
}

.wdo-page--programas .wdo-related-properties .property-results {
  min-block-size: 0;
  padding: 0;
  background: transparent;
}

.wdo-page--programas .wdo-related-properties .property-results > .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 52px);
}

.wdo-page--programas .wdo-related-properties .property-card--modern {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  translate: 0 0;
  transition: translate 420ms var(--programas-enter);
}

.wdo-page--programas .wdo-related-properties .property-card--modern::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -20px;
  block-size: 1px;
  background: var(--programas-rule);
  content: '';
  transform: scaleX(.24);
  transform-origin: left;
  transition: transform 500ms var(--programas-enter);
}

.wdo-page--programas .wdo-related-properties .property-card--modern:hover {
  translate: 0 -5px;
}

.wdo-page--programas .wdo-related-properties .property-card--modern:hover::after,
.wdo-page--programas .wdo-related-properties .property-card--modern:focus-within::after {
  transform: scaleX(1);
}

.wdo-page--programas .wdo-related-properties .property-card__carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  background: #fff;
}

.wdo-page--programas .wdo-related-properties .property-card__track {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.wdo-page--programas .wdo-related-properties .property-card__slide,
.wdo-page--programas .wdo-related-properties .property-card__slide > a,
.wdo-page--programas .wdo-related-properties .property-card__slide img {
  inline-size: 100%;
  block-size: 100%;
}

.wdo-page--programas .wdo-related-properties .property-card__slide img {
  display: block;
  object-fit: cover;
}

.wdo-page--programas .wdo-related-properties .property-card__body {
  padding: 22px 0 0;
}

/* FAQ uses an editorial two-column reading composition. */
.wdo-page--programas .wdo-faq {
  display: grid;
  align-items: center;
  min-block-size: 100svh;
  background: #fff;
}

.wdo-page--programas .wdo-faq > .wdo-widget__inner {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(54px, 8vw, 126px);
  width: min(100% - 48px, 1180px);
  padding-block: clamp(96px, 11vw, 148px);
}

.wdo-page--programas .wdo-faq > .wdo-widget__inner > .wdo-widget__title {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  color: var(--wdo-petrol-blue);
}

.wdo-page--programas .wdo-faq__items {
  margin-top: 0;
  border-block-start: 1px solid var(--programas-rule);
}

.wdo-page--programas .wdo-faq__item {
  border-block-end: 1px solid var(--programas-rule);
}

.wdo-page--programas .wdo-faq__button {
  min-block-size: 64px;
  padding: 22px 0;
  color: var(--wdo-petrol-blue);
  font-size: var(--type-heading-3);
}

.wdo-page--programas .wdo-faq__button span:last-child {
  color: var(--wdo-burnt-terracotta);
}

.wdo-page--programas .wdo-faq__panel {
  max-inline-size: 66ch;
  padding: 0 48px 26px 0;
  color: var(--wdo-ink);
  line-height: 1.75;
}

.wdo-page--programas .wdo-faq__panel p {
  color: inherit;
}

/* Final action closes the map without another card surface. */
.wdo-page--programas .wdo-final-cta {
  position: relative;
  display: grid;
  align-items: center;
  min-block-size: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--wdo-burnt-terracotta);
}

.wdo-page--programas .wdo-final-cta::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 28%;
  background: var(--wdo-petrol-blue);
  content: '';
  pointer-events: none;
}

.wdo-page--programas .wdo-final-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 0;
  width: min(100% - 48px, 1180px);
  padding-block: clamp(96px, 12vw, 160px);
  text-align: left;
}

.wdo-page--programas .wdo-final-cta__inner > div:first-child {
  max-inline-size: 760px;
  text-align: left;
}

.wdo-page--programas .wdo-final-cta .wdo-widget__eyebrow,
.wdo-page--programas .wdo-final-cta .wdo-widget__title,
.wdo-page--programas .wdo-final-cta .wdo-widget__text,
.wdo-page--programas .wdo-final-cta .wdo-widget__text p {
  color: #fff;
  text-align: left;
}

.wdo-page--programas .wdo-final-cta .wdo-widget__text {
  max-inline-size: 54ch;
  margin-block-start: 28px;
  line-height: 1.75;
}

.wdo-page--programas .wdo-final-cta .wdo-widget__text p {
  color: inherit;
}

.wdo-page--programas .wdo-final-cta .wdo-widget__actions {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  margin: 30px 0 0;
}

/* Reduced motion keeps the whole route visible and stable. */
@media (prefers-reduced-motion: reduce) {
  .wdo-page--programas .wdo-page-hero__content::after,
  .wdo-page--programas .wdo-page-hero__media img,
  .wdo-page--programas .wdo-related-properties .property-card--modern,
  .wdo-page--programas .wdo-related-properties .property-card--modern::after {
    opacity: 1;
    translate: none;
    transform: none;
    transition: none;
    animation: none;
  }

  .wdo-page--programas .wdo-related-properties .property-card--modern:hover,
  .wdo-page--programas .wdo-related-properties .property-card--modern:focus-within {
    translate: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .wdo-page--programas {
    --programas-gutter: 32px;
  }

  .wdo-page--programas .wdo-page-hero__grid {
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  }

  .wdo-page--programas .wdo-program-overview__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
    gap: 52px;
  }

  .wdo-page--programas .wdo-related-properties .property-results > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wdo-page--programas .wdo-faq > .wdo-widget__inner {
    grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .wdo-page--programas {
    --programas-gutter: 20px;
  }

  .wdo-page--programas .wdo-page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-block-size: 0;
  }

  .wdo-page--programas .wdo-page-hero__content {
    min-block-size: 64svh;
    padding: calc(var(--header-height) + 52px) var(--programas-gutter) 64px;
  }

  .wdo-page--programas .wdo-page-hero__content::after {
    inset-block: auto 0;
    inset-inline: 0;
    inline-size: auto;
    block-size: 8px;
    transform-origin: left;
  }

  .wdo-page--programas .wdo-page-hero__content .wdo-widget__title {
    max-inline-size: 15ch;
    font-size: var(--type-heading-1-mobile);
  }

  .wdo-page--programas .wdo-page-hero__media {
    min-block-size: 54svh;
  }

  .wdo-page--programas .wdo-program-overview::before {
    display: none;
  }

  .wdo-page--programas .wdo-program-overview__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    width: min(100% - 40px, 1180px);
    padding-block: 88px;
  }

  .wdo-page--programas .wdo-program-overview__list {
    padding: 28px 22px;
  }

  .wdo-page--programas .wdo-credit-guidance::after {
    inset-block: auto 0;
    inline-size: 100%;
    block-size: 14%;
  }

  .wdo-page--programas .wdo-credit-guidance .wdo-widget__inner,
  .wdo-page--programas .wdo-related-properties > .wdo-widget__inner,
  .wdo-page--programas .wdo-faq > .wdo-widget__inner,
  .wdo-page--programas .wdo-final-cta__inner {
    width: min(100% - 40px, 1180px);
  }

  .wdo-page--programas .wdo-related-properties .property-results > .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
  }

  .wdo-page--programas .wdo-related-properties .property-card--modern:hover {
    translate: none;
  }

  .wdo-page--programas .wdo-faq > .wdo-widget__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-block: 88px;
  }

  .wdo-page--programas .wdo-faq > .wdo-widget__inner > .wdo-widget__title {
    position: static;
  }

  .wdo-page--programas .wdo-faq__panel {
    padding-inline-end: 0;
  }

  .wdo-page--programas .wdo-final-cta::after {
    inset-block: auto 0;
    inline-size: 100%;
    block-size: 16%;
  }

  .wdo-page--programas .wdo-final-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    padding-block: 96px 128px;
  }
}

@media (max-width: 420px) {
  .wdo-page--programas .wdo-program-overview__list li {
    padding-inline-start: 24px;
  }

  .wdo-page--programas .wdo-faq__button {
    gap: 16px;
  }

  .wdo-page--programas .wdo-final-cta__inner {
    width: min(100% - 32px, 1180px);
  }
}
