/* Local homepage: Linha Loft. */
.loft-feature { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--paper); color: var(--ink); scroll-margin-top: 6rem; }
.loft-feature-inner { width: var(--page); margin: 0 auto; }
.loft-feature-main { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.loft-copy .eyebrow { color: var(--rust); }
.loft-copy h2 { color: var(--ink); font-family: "Manrope", sans-serif; font-size: clamp(2.3rem, 3.6vw, 3.8rem); line-height: 1.06; letter-spacing: -.05em; font-weight: 700; }
.loft-copy > p:not(.eyebrow) { margin-top: 1rem; color: var(--body); font-size: 1rem; line-height: 1.7; }
.loft-details { margin-top: 1.4rem; display: grid; gap: 1.1rem; }
.loft-details h3 { margin: 0 0 .35rem; font-size: 1rem; color: var(--ink); }
.loft-details p { margin: 0; color: var(--body); font-size: .94rem; line-height: 1.65; }
.loft-actions { margin-top: 1.5rem; }
.loft-actions .button { border-radius: .35rem; }
.loft-copy > p.loft-note { font-size: .75rem; line-height: 1.5; margin-top: .7rem; }
.loft-carousel { min-width: 0; margin-top: 95px; }
.loft-slides { position: relative; background: var(--paper); display: grid; isolation: isolate; }
.loft-slide { margin: 0; grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity 1400ms cubic-bezier(.4, 0, .2, 1); }
.loft-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.loft-slide[hidden] { display: none; }
.loft-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.loft-slide:nth-child(-n+2) img { object-fit: cover; }
.loft-slide:nth-child(2) img { object-position: center 15%; }
.loft-carousel-controls { display: flex; align-items: center; gap: .8rem; padding-top: .8rem; }
.loft-arrow { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgba(22, 31, 39, .65); border-radius: 6px; background: rgba(22, 31, 39, .65); color: #fff; cursor: pointer; display: grid; place-items: center; order: 2; }
.loft-slides > .loft-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.loft-slides > [data-loft-prev] { left: .75rem; }
.loft-slides > [data-loft-next] { right: .75rem; }
.loft-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.loft-arrow:hover { background: var(--rust); border-color: var(--rust); color: white; }
.loft-dots { display: flex; align-items: center; justify-content: flex-start; flex: 1; }
.loft-dots button { width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.loft-dots button::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #bfc5c7; }
.loft-dots button[aria-pressed="true"]::after { background: var(--rust); }
.loft-count { order: 1; margin-right: .3rem; font-size: .8rem; color: var(--body); white-space: nowrap; }
.loft-carousel button:focus-visible, .loft-carousel:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
@media (min-width: 761px) and (max-width: 900px) {
  .loft-feature-main { grid-template-columns: 1fr; gap: 2rem; }
  .loft-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loft-carousel { margin-top: 0; width: min(100%, 640px); justify-self: center; }
  .loft-carousel-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 44px 44px;
    gap: .25rem .5rem;
  }
  .loft-carousel-controls [data-loft-prev] { grid-column: 1; grid-row: 1; }
  .loft-carousel-controls .loft-count { grid-column: 2; grid-row: 1; justify-self: center; }
  .loft-carousel-controls [data-loft-next] { grid-column: 3; grid-row: 1; }
  .loft-carousel-controls .loft-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  .loft-feature-main { grid-template-columns: 1fr; gap: 2rem; }
  .loft-copy h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .loft-details { gap: 1rem; }
  .loft-carousel { margin-top: 0; }
  .loft-carousel-controls { gap: .5rem; }
  .loft-dots button { width: 25px; }
}

@media (max-width: 480px) {
  .loft-carousel-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 44px 44px;
    gap: .25rem .5rem;
  }
  .loft-carousel-controls [data-loft-prev] { grid-column: 1; grid-row: 1; }
  .loft-carousel-controls .loft-count { grid-column: 2; grid-row: 1; justify-self: center; }
  .loft-carousel-controls [data-loft-next] { grid-column: 3; grid-row: 1; }
  .loft-carousel-controls .loft-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loft-slide { transition: opacity 1400ms ease-in-out; transition-duration: 1400ms !important; }
}

/* Separate model descriptions without changing the carousel. */
.loft-details .loft-model { padding: 1.2rem 1.5rem; background: #fff; border: 1px solid #e0e3e2; border-left: 3px solid var(--rust); border-radius: 6px; }
.loft-details .loft-model + .loft-model { margin-top: 0; }
.loft-details .loft-model h3 { font-family: "Manrope", sans-serif; font-size: 1.45rem; margin-bottom: .45rem; }
.loft-details .loft-model-spec { color: var(--rust); font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
.loft-details .loft-model p:last-child { line-height: 1.75; }

.loft-plan-section { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--paper); border-top: 1px solid #e0e3e2; }
.loft-plan-heading { width: min(100%, 1020px); margin: 0 auto 1.25rem; }
.loft-plan-heading .eyebrow { color: var(--rust); margin-bottom: .4rem; }
.loft-plan-heading h2 { color: var(--ink); font-family: "Manrope", sans-serif; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.045em; }
.loft-plan-figure { width: min(100%, 1020px); margin: 0 auto; }
.loft-plan-figure img { display: block; width: 100%; height: auto; }

/* Identifica cada modelo sem alterar o layout da seção ou a navegação do carrossel. */
.loft-details .loft-model-tag { margin: 0 0 .45rem; color: var(--rust); font-size: .68rem; font-weight: 700; letter-spacing: .11em; }
.loft-details .loft-model-horizonte { border-left-color: #405d58; }
.loft-details .loft-model-horizonte .loft-model-tag,
.loft-details .loft-model-horizonte .loft-model-spec { color: #405d58; }
.loft-slide { position: relative; overflow: hidden; }
.loft-slide::after { content: attr(data-loft-label); position: absolute; top: 1rem; left: 1rem; padding: .48rem .72rem; border-radius: 3px; background: rgba(22, 31, 39, .82); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .09em; }
/* O card acompanha o projeto exibido no carrossel. */
.loft-details .loft-model { transition: background-color .25s ease, box-shadow .25s ease; }
.loft-details .loft-model-aurora.is-current { background: #fffaf7; box-shadow: 0 0 0 2px rgba(180, 79, 53, .22); }
.loft-details .loft-model-horizonte.is-current { background: #f7faf8; box-shadow: 0 0 0 2px rgba(64, 93, 88, .24); }.loft-details .loft-model[role="button"] { cursor: pointer; }
.loft-details .loft-model[role="button"]:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

@media (max-width: 320px) {
  body { min-width: 0; }
}
