/* ==========================================================================
   Vistage Residence — layout
   Depende das variáveis de colors_and_type.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset e base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video { max-width: 100%; }

img { display: block; height: auto; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul { margin: 0; padding: 0; list-style: none; }

/* Regras de componente com display: flex/grid/block vencem o [hidden] do
   user-agent. Sem isto um painel escondido continua ocupando a tela — foi
   exatamente o que aconteceu com o lightbox das plantas. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

:where(a, button, input, [tabindex]):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--bronze);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: .875rem;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
}


/* --------------------------------------------------------------------------
   2. Estruturas compartilhadas
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    width: 100%;
    padding-block: var(--section-pad);
    background-color: var(--offwhite);
    background-image: var(--noise);
    overflow: hidden;
}

.section__head { margin-bottom: 56px; }

.section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.section__title { max-width: 18ch; }

/* Eyebrow com o fio warm por baixo — assinatura repetida em toda seção. */
.eyebrow { margin: 0 0 18px; }

.rule-under {
    display: inline-block;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-warm);
}

.on-dark .rule-under { border-bottom-color: var(--rule-dark); }

/* ---- Monograma ------------------------------------------------------- */

.monogram { display: block; }

/* ---- Botões ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn--lg { padding: 18px 44px; }

.btn--gold {
    background: var(--gold);
    color: var(--bronze);
    border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--outline {
    color: var(--text-dark);
    border-color: var(--rule-warm);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--ghost {
    color: var(--text-light);
    border-color: rgba(245, 239, 230, .45);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn[disabled] { opacity: .55; cursor: not-allowed; }


/* --------------------------------------------------------------------------
   3. Topbar
   -------------------------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    background: var(--bronze);
    transition: background-color .3s ease, box-shadow .3s ease;
}

/* Sobre o hero a topbar nasce transparente e só ganha corpo ao rolar. */
.topbar--over {
    position: fixed;
    background: transparent;
}
.topbar--over.is-solid,
.topbar--over.is-open {
    background: rgba(33, 17, 11, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--rule-dark);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 14px var(--gutter);
}

.topbar__logo { flex: 0 0 auto; line-height: 0; color: var(--gold); }

/* Só o símbolo — o "V" emoldurado, sem wordmark nem tagline. */
.topbar__symbol {
    width: 34px;
    height: auto;
    transition: color .2s ease;
}
.topbar__logo:hover .topbar__symbol { color: var(--gold-light); }

.topbar__nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.topbar__nav a {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
    opacity: .85;
    transition: color .2s ease, opacity .2s ease;
}
.topbar__nav a:hover { color: var(--gold); opacity: 1; }

.topbar__cta { flex: 0 0 auto; padding: 12px 24px; }

/* Nas páginas internas a topbar é bronze sólido: o botão "Voltar" precisa da
   variante clara, senão fica texto escuro sobre fundo escuro. */
.topbar .btn--outline {
    margin-left: auto;
    color: var(--text-light);
    border-color: rgba(245, 239, 230, .45);
}
.topbar .btn--outline:hover { color: var(--gold); border-color: var(--gold); }

.topbar__toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.topbar__toggle span {
    display: block;
    height: 1px;
    background: var(--text-light);
    transition: transform .25s ease, opacity .25s ease;
}
.topbar.is-open .topbar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.is-open .topbar__toggle span:nth-child(2) { opacity: 0; }
.topbar.is-open .topbar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.topbar__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px var(--gutter) 28px;
    border-top: 1px solid var(--rule-dark);
}
.topbar__menu a {
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
}
.topbar__menu-cta { color: var(--gold) !important; }

@media (max-width: 1023px) {
    .topbar__nav, .topbar__cta { display: none; }
    .topbar__toggle { display: flex; }
}

@media (min-width: 1024px) {
    .topbar__menu { display: none !important; }
}


/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide picture,
.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: var(--scrim-v);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 120px var(--gutter) 140px;
    text-align: center;
}

.hero__logo {
    width: clamp(150px, 20vw, 220px);
    height: auto;
    margin: 0 auto 40px;
}

.hero__title {
    color: var(--text-light);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.15rem + 2.9vw, 3rem);
    margin-bottom: 24px;
}

.hero__desc {
    max-width: 60ch;
    margin-inline: auto;
    color: var(--text-light);
    opacity: .88;
    text-align: justify;
    text-align-last: center;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 40px;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    width: 1px;
    height: 42px;
    overflow: hidden;
    background: rgba(245, 239, 230, .22);
}
.hero__scroll span {
    display: block;
    width: 1px;
    height: 42px;
    background: var(--gold);
    animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%   { transform: translateY(-100%); }
    60%  { transform: translateY(100%); }
    100% { transform: translateY(100%); }
}


/* --------------------------------------------------------------------------
   5. Institucional
   -------------------------------------------------------------------------- */

.institucional { background-color: var(--offwhite); text-align: center; }

.institucional__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.institucional__title { margin: 0 auto 44px; max-width: 26ch; }

/* Fundo escuro cobre o letterbox enquanto o vídeo carrega (preload="none"). */
.institucional__video {
    margin: 0 auto;
    background-color: var(--bg-dark);
}

.institucional__video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.institucional__cta { margin-top: 44px; }

@media (max-width: 599px) {
    .institucional__cta { width: 100%; }
}


/* --------------------------------------------------------------------------
   6. Sobre
   -------------------------------------------------------------------------- */

.sobre { background-color: var(--bg-sand); }

.sobre__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.sobre__figure { margin: 0; }
.sobre__figure img {
    width: 100%;
    aspect-ratio: 5 / 7;
    object-fit: cover;
}

.sobre__title { margin-bottom: 28px; }

.sobre__text p { text-align: justify; }

/* ---- Faixa de números ------------------------------------------------ */

.numbers {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: clamp(56px, 7vw, 88px) 0 0;
    border-top: 1px solid var(--rule-warm);
}

.numbers__item {
    padding: 32px 20px 0;
    text-align: center;
    border-left: 1px solid var(--rule-warm);
}
.numbers__item:first-child { border-left: 0; }

.numbers__value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
    color: var(--text-dark);
}

.numbers__unit {
    font-size: .45em;
    margin-left: .15em;
    color: var(--gold);
}

.numbers__label {
    margin: 10px 0 0;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dark-soft);
}

@media (max-width: 899px) {
    .sobre__inner { grid-template-columns: 1fr; }
    .sobre__figure img { aspect-ratio: 4 / 3; }
    .numbers { grid-template-columns: repeat(2, 1fr); }
    .numbers__item:nth-child(3) { border-left: 0; }
    .numbers__item:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--rule-warm); padding-top: 28px; }
}


/* --------------------------------------------------------------------------
   7. Plantas
   -------------------------------------------------------------------------- */

.plantas { background-color: var(--offwhite); }

/* Título mais largo para quebrar em duas linhas, não três. */
.plantas .section__title { max-width: 26ch; }

.tabs__scroller {
    margin-bottom: 48px;
    border-bottom: 1px solid var(--rule-warm);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs__scroller::-webkit-scrollbar { display: none; }

.tabs {
    display: flex;
    gap: 4px;
    min-width: max-content;
    scroll-snap-type: x proximity;
}

.tabs__btn {
    position: relative;
    padding: 14px 22px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dark-soft);
    scroll-snap-align: start;
    white-space: nowrap;
    transition: color .2s ease;
}
.tabs__btn::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: -1px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.tabs__btn:hover { color: var(--text-dark); }
.tabs__btn.is-active { color: var(--bronze); }
.tabs__btn.is-active::after { transform: scaleX(1); }

/* ---- Seletor mobile (dropdown) — some no lugar do scroll horizontal --- */

.u-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tabs__select { display: none; }

.tabs__select-input {
    display: block;
    width: 100%;
    padding: 16px 44px 16px 2px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bronze);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23C59B63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 15px;
    border: none;
    border-bottom: 1px solid var(--rule-warm);
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.tabs__select-input:focus-visible {
    outline: none;
    border-bottom-color: var(--gold);
}

/* ---- Painel ---------------------------------------------------------- */

.planta {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.planta__key {
    width: 190px;
    height: auto;
    margin-bottom: 26px;
    opacity: .9;
}

.planta__nome {
    font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
    letter-spacing: .04em;
    color: var(--bronze);
    margin-bottom: 14px;
}

.planta__area {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rule-warm);
}

.planta__area-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--gold);
}

.planta__area-un {
    font-family: var(--font-sans);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dark-soft);
}

.planta__itens li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: .95rem;
    color: var(--text-dark-soft);
}
.planta__itens li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 7px;
    height: 1px;
    background: var(--gold);
}

.planta__figure { margin: 0; }

.planta__zoom {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
}

/* Altura fixa + contain: os desenhos têm proporções diferentes, mas todas as
   abas passam a ocupar o mesmo bloco — a referência é a altura das plantas
   01 e 02. Sem isso a página "pula" ao trocar de aba. */
.planta__zoom img {
    width: 100%;
    height: clamp(340px, 43vw, 620px);
    object-fit: contain;
    object-position: center;
}

.planta__zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 14px;
    font-family: var(--font-sans);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-light);
    background: rgba(41, 21, 14, .78);
    opacity: 0;
    transition: opacity .25s ease;
}
.planta__zoom:hover .planta__zoom-hint,
.planta__zoom:focus-visible .planta__zoom-hint { opacity: 1; }

/* ---- Sub-seletor do Garden ------------------------------------------- */

.garden__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.garden__pill {
    min-width: 46px;
    padding: 9px 4px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--text-dark-soft);
    border: 1px solid var(--rule-warm);
    transition: all .2s ease;
}
.garden__pill:hover { border-color: var(--gold); color: var(--bronze); }
.garden__pill.is-active {
    background: var(--bronze);
    border-color: var(--bronze);
    color: var(--offwhite);
}

.plantas__nota {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--rule-warm);
    font-size: .75rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 899px) {
    .tabs__scroller { display: none; }
    .tabs__select { display: block; margin-bottom: 40px; }
    .planta { grid-template-columns: 1fr; }
    .planta__key { width: 140px; }
    .planta__zoom-hint { opacity: 1; }
}

/* ---- Lightbox -------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    background: rgba(26, 10, 5, .93);
}

.lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    object-fit: contain;
    background: var(--offwhite);
}

.lightbox__caption {
    font-family: var(--font-sans);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-light);
    transition: color .2s ease;
}
.lightbox__close:hover { color: var(--gold); }


/* --------------------------------------------------------------------------
   8. Vista
   -------------------------------------------------------------------------- */

.vista {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--blue-horizon);
}

.vista__media { position: absolute; inset: 0; }

/* background-attachment: fixed quebra no iOS — a imagem é um <img> com cover. */
.vista__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.vista__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 62% 52% at 50% 55%, rgba(33, 17, 11, .74) 0%, rgba(33, 17, 11, .32) 70%, transparent 100%),
        linear-gradient(180deg, rgba(26, 40, 54, .56) 0%, rgba(33, 17, 11, .72) 100%),
        linear-gradient(rgba(33, 17, 11, .18), rgba(33, 17, 11, .18));
}

.vista__content {
    position: relative;
    z-index: 2;
    padding-block: 140px;
    text-align: center;
}

.vista__seal {
    width: 52px;
    margin: 0 auto 34px;
    color: var(--gold);
}

.vista__frase {
    max-width: 20ch;
    margin-inline: auto;
    font-size: clamp(1.7rem, 1.05rem + 2.6vw, 2.9rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 0 2px 24px rgba(26, 10, 5, .5);
}


/* --------------------------------------------------------------------------
   9. Galeria
   -------------------------------------------------------------------------- */

/* Fundo escuro pede a variante forte: a .035 do --noise fica abaixo do
   limiar de percepção sobre o bronze. */
.galeria {
    background-color: var(--bg-dark);
    background-image: var(--noise-strong);
}

/* Setas sobre a imagem principal, uma em cada extremo, centradas na altura. */
.galeria__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--text-light);
    background: rgba(33, 17, 11, .72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245, 239, 230, .40);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.galeria__arrow--prev { left: 20px; }
.galeria__arrow--next { right: 20px; }

.galeria__arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bronze);
}
.galeria__arrow svg { width: 18px; height: 18px; }

.galeria__counter { margin: 0; letter-spacing: .2em; }

/* Título em uma linha só. */
.galeria .section__title { max-width: none; }

/* 70% para a principal, 30% para a coluna de três — como pede a copy. */
.galeria__grid {
    display: grid;
    grid-template-columns: 70fr 30fr;
    gap: 16px;
    outline: none;
}

.galeria__main {
    position: relative;
    margin: 0;
    overflow: hidden;
}
.galeria__main img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.galeria__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 28px 22px;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-light);
    background: linear-gradient(180deg, transparent, rgba(33, 17, 11, .85));
}

.galeria__thumbs {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    min-height: 0;
}

.galeria__thumb {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}
.galeria__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .3s ease;
    opacity: .72;
}
.galeria__thumb:hover img,
.galeria__thumb:focus-visible img {
    opacity: 1;
    transform: scale(1.04);
}

.galeria__thumb-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 14px 12px;
    font-family: var(--font-sans);
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-light);
    background: linear-gradient(180deg, transparent, rgba(33, 17, 11, .8));
}

@media (max-width: 899px) {
    .galeria__grid { grid-template-columns: 1fr; }
    .galeria__thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
    .galeria__thumb img { aspect-ratio: 4 / 3; }
    .galeria__thumb-label { display: none; }
}


/* --------------------------------------------------------------------------
   10. Book
   -------------------------------------------------------------------------- */

.book { background-color: var(--offwhite); }

.book__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.book__title { margin-bottom: 20px; }

/* Ocupa toda a largura do .book__inner (720px) — é o que fecha a descrição
   em duas linhas. Sem cap próprio de medida aqui. */
.book__text {
    margin-inline: auto;
    text-align: justify;
    text-align-last: center;
}

.book__text strong { font-weight: 600; }

.book__actions { margin: 44px 0 0; }

@media (max-width: 599px) {
    .book__download { width: 100%; }
}


/* --------------------------------------------------------------------------
   11. Encerramento
   -------------------------------------------------------------------------- */

/* Mesmo claro das Plantas — o ruído vem do .section. A foto do mar saiu do
   full-bleed e virou a coluna da direita: complemento do texto, não pano
   de fundo. */
.encerramento { background-color: var(--bg-sand); }

.encerramento__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
}

.encerramento__title { margin-bottom: 22px; }

.encerramento__desc { margin: 0 0 40px; }

.encerramento__figure { margin: 0; }
.encerramento__figure img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 55%;
}

@media (max-width: 899px) {
    /* Texto primeiro, imagem depois — a ordem do DOM já resolve. */
    .encerramento__inner { grid-template-columns: 1fr; }
    .encerramento__figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 599px) {
    .encerramento__cta { width: 100%; }
}


/* --------------------------------------------------------------------------
   12. Sustentabilidade
   -------------------------------------------------------------------------- */


/* Full-bleed com a foto de mata: o texto vive sobre a imagem, alinhado à
   esquerda, como na página de sustentabilidade do book. */
.eco {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    overflow: hidden;
    background: #0F1712;
}

/* A foto é retrato (1600x2400): no desktop o cover corta topo e base, no
   celular corta as laterais. Uma única imagem serve os dois. */
.eco__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.eco__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 20, 15, .90) 0%, rgba(13, 20, 15, .68) 34%, rgba(13, 20, 15, .26) 66%, rgba(13, 20, 15, .10) 100%),
        linear-gradient(rgba(10, 16, 12, .26), rgba(10, 16, 12, .26));
}

.eco__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: clamp(48px, 6vw, 76px);
}

.eco__seal {
    width: 46px;
    color: var(--text-light);
    opacity: .92;
}

/* Bloco de texto no terço central, medida curta como no book. */
.eco__body {
    max-width: 34rem;
    padding-block: clamp(32px, 5vw, 64px);
}

.eco__title {
    margin-bottom: 28px;
    font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3rem);
    color: var(--text-light);
}

/* Alinhado à esquerda, não justificado: o layout do book é bandeira à
   esquerda, e sobre foto o rio de espaços da justificação fica visível. */
.eco__body p {
    max-width: 32rem;
    margin-bottom: 1.5em;
    line-height: 1.85;
    color: var(--text-light);
    opacity: .88;
    text-align: left;
}
.eco__body p:last-child { margin-bottom: 0; }

.eco__assinatura {
    margin: 0;
    color: var(--text-light);
    opacity: .55;
}

@media (max-width: 899px) {
    .eco { min-height: 0; }
    .eco__inner { padding-block: var(--section-pad); }
    .eco__scrim {
        background:
            linear-gradient(180deg, rgba(13, 20, 15, .78) 0%, rgba(13, 20, 15, .86) 100%),
            linear-gradient(rgba(10, 16, 12, .30), rgba(10, 16, 12, .30));
    }
    .eco__body { padding-block: 40px; }
}


/* --------------------------------------------------------------------------
   13. Rodapé
   -------------------------------------------------------------------------- */

.footer {
    --footer-gap: clamp(32px, 4vw, 56px);
    width: 100%;
    background: var(--bronze);
    background-image: var(--noise-strong);
    color: var(--text-light);
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    justify-content: space-between;
    gap: var(--footer-gap);
    padding-block: clamp(56px, 7vw, 84px);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}
.footer__logo-vistage { width: 145px; height: auto; }
.footer__logo-aj { width: 145px; height: auto; }

.footer__divider {
    width: 145px;
    height: 1px;
    background: var(--rule-dark);
}

.footer__title { margin-bottom: 16px; }

.footer__text {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-light);
    opacity: .8;
}
.footer__text a { display: inline-block; max-width: 100%; text-decoration: none; transition: color .2s ease; }
.footer__text a:hover { color: var(--gold); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--text-light);
    border: 1px solid var(--rule-dark);
    transition: color .2s ease, border-color .2s ease;
}
.footer__social a:hover { color: var(--gold); border-color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom { border-top: 1px solid var(--rule-dark); }

.footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px;
}

.footer__policy {
    font-family: var(--font-sans);
    font-size: .75rem;
    letter-spacing: .1em;
    color: var(--text-muted);
    text-decoration: none;
}
.footer__policy:hover { color: var(--gold); }

.footer__copy {
    margin: 0;
    font-family: var(--font-sans);
    font-size: .72rem;
    letter-spacing: .06em;
    color: var(--text-muted);
}

@media (max-width: 1099px) {
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
    .footer__inner { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   14. Fallback e páginas internas
   -------------------------------------------------------------------------- */

.fallback,
.pagina {
    width: 100%;
    padding-block: clamp(64px, 8vw, 120px);
    background-color: var(--offwhite);
    background-image: var(--noise);
}

.fallback__inner,
.pagina__inner { max-width: 780px; }

.fallback__title,
.pagina__title { margin-bottom: 20px; }

.fallback__back,
.pagina__back { margin-top: 48px; }

.pagina__vigencia {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule-warm);
}

.pagina__conteudo h2 {
    margin: 40px 0 14px;
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
}

.pagina__conteudo p,
.pagina__conteudo li { text-align: justify; }

.pagina__conteudo ul {
    margin: 0 0 1.15em;
    padding-left: 22px;
    list-style: disc;
}
.pagina__conteudo li { margin-bottom: 8px; }
