/* Estilos próprios do site. O Bootstrap vem de /assets/vendor (ADR-013). Sem fontes nem recursos externos (CSP). */

:root {
    --c-navy: #0f2540;
    --c-navy-2: #17355a;
    --c-gold: #c8963e;
    --c-gold-dark: #a87a2a;
    --c-gold-hover: #d6a64f;
    --c-gold-soft: #f6ecd8;
    --c-footer: #0a1a2e;
    --c-ink: #1d2733;
    --c-muted: #667385;
    --c-soft: #f4f6f9;
    --c-line: #e3e8ef;
    --radius: .85rem;
    --shadow-sm: 0 1px 2px rgba(15, 37, 64, .06), 0 2px 8px rgba(15, 37, 64, .06);
    --shadow-md: 0 10px 30px rgba(15, 37, 64, .14);

    --bs-primary: var(--c-navy);
    --bs-primary-rgb: 15, 37, 64;
    --bs-link-color: var(--c-navy-2);
    --bs-link-color-rgb: 23, 53, 90;
    --bs-link-hover-color: var(--c-gold-dark);
    --bs-body-color: var(--c-ink);
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-border-color: var(--c-line);
    --bs-border-radius: .6rem;
}

body { background: #fff; color: var(--c-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .navbar-brand { letter-spacing: -.015em; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* Botões */
.btn { font-weight: 600; border-radius: .6rem; padding: .55rem 1.1rem; transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn-sm { padding: .4rem .8rem; }
.btn-primary { --bs-btn-bg: var(--c-navy); --bs-btn-border-color: var(--c-navy); --bs-btn-hover-bg: var(--c-navy-2); --bs-btn-hover-border-color: var(--c-navy-2); --bs-btn-active-bg: var(--c-navy-2); --bs-btn-active-border-color: var(--c-navy-2); --bs-btn-disabled-bg: var(--c-navy); --bs-btn-disabled-border-color: var(--c-navy); }
.btn-outline-primary { --bs-btn-color: var(--c-navy); --bs-btn-border-color: var(--c-navy); --bs-btn-hover-bg: var(--c-navy); --bs-btn-hover-border-color: var(--c-navy); --bs-btn-active-bg: var(--c-navy); --bs-btn-active-border-color: var(--c-navy); }
.btn-outline-secondary { --bs-btn-color: var(--c-muted); --bs-btn-border-color: #cbd3de; --bs-btn-hover-bg: var(--c-soft); --bs-btn-hover-color: var(--c-ink); --bs-btn-hover-border-color: #b8c2d0; }
.btn-gold { --bs-btn-color: #1b1304; --bs-btn-bg: var(--c-gold); --bs-btn-border-color: var(--c-gold); --bs-btn-hover-color: #1b1304; --bs-btn-hover-bg: var(--c-gold-hover); --bs-btn-hover-border-color: var(--c-gold-hover); --bs-btn-active-bg: var(--c-gold-hover); --bs-btn-active-border-color: var(--c-gold-hover); }
.btn:hover { box-shadow: var(--shadow-sm); }

/* Barra superior com contatos */
.topbar { background: var(--c-navy); color: #cfd9e6; font-size: .8125rem; }
.topbar a { color: #e6edf5; text-decoration: none; }
.topbar a:hover { color: var(--c-gold); }
.topbar .container { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-top: .45rem; padding-bottom: .45rem; }
.topbar ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }

/* Cabeçalho e menu */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); box-shadow: 0 1px 0 rgba(15, 37, 64, .02); }
.site-header .navbar { padding-top: .35rem; padding-bottom: .35rem; }
.navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: var(--c-navy); }
.brand-mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2)); color: var(--c-gold); font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.site-logo { display: block; max-height: 76px; max-width: min(100%, 22rem); width: auto; height: auto; }
@media (max-width: 575.98px) { .site-logo { max-height: 56px; max-width: 14rem; } }
.navbar-nav .nav-link { color: var(--c-ink); font-weight: 600; font-size: .95rem; padding: .5rem .8rem !important; border-radius: .5rem; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus-visible { color: var(--c-navy); background: var(--c-soft); }
.navbar-nav .nav-link.active { color: var(--c-gold-dark); }
.navbar-nav > li:last-child .nav-link { background: var(--c-navy); color: #fff; margin-left: .35rem; }
.navbar-nav > li:last-child .nav-link:hover { background: var(--c-navy-2); }
.dropdown-menu { border: 1px solid var(--c-line); border-radius: .75rem; box-shadow: var(--shadow-md); padding: .4rem; }
.dropdown-item { border-radius: .45rem; padding: .5rem .8rem; font-weight: 500; }
.dropdown-item:hover { background: var(--c-soft); color: var(--c-navy); }
@media (min-width: 992px) { .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }
@media (max-width: 991.98px) { .navbar-nav > li:last-child .nav-link { margin: .35rem 0 0; text-align: center; } }

/* Banners */
.banner-strip { background: var(--c-navy); }
.banner-slide { position: relative; display: block; color: #fff; text-decoration: none; }
.banner-img { width: 100%; height: clamp(260px, 42vw, 540px); object-fit: cover; background: var(--c-navy); }
.banner-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 24, 42, .82) 0%, rgba(10, 24, 42, .45) 55%, rgba(10, 24, 42, .1) 100%); }
.banner-caption { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .75rem; max-width: 40rem; padding: 0 1.5rem; margin-left: max(1rem, calc((100vw - 1320px) / 2)); }
.banner-caption .eyebrow { color: var(--c-gold); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.banner-caption h2 { font-size: clamp(1.6rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.1; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.banner-caption p { font-size: clamp(.95rem, 1.6vw, 1.2rem); margin: 0; color: #e8eef6; max-width: 34rem; }
.carousel-indicators [data-bs-target] { width: 2rem; height: 4px; border: 0; border-radius: 2px; background: #fff; }
.carousel-control-prev, .carousel-control-next { width: 5rem; z-index: 3; }
@media (max-width: 575.98px) { .banner-caption p { display: none; } .carousel-control-prev, .carousel-control-next { width: 2.5rem; } }

/* Seções */
.section { padding: 3.25rem 0; }
.section-soft { background: var(--c-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0; color: var(--c-navy); }
.section-head h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: .55rem; border-radius: 2px; background: var(--c-gold); }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head a::after { content: " →"; }

/* Separadores (abas) da home */
.home-tabs { gap: .5rem; margin-bottom: 1.75rem; border-bottom: 2px solid var(--c-line); flex-wrap: wrap; }
.home-tabs .nav-link { margin-bottom: -2px; padding: .8rem 1.4rem; border: 0; border-bottom: 3px solid transparent; border-radius: .6rem .6rem 0 0; background: none; color: var(--c-muted); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.home-tabs .nav-link:hover { color: var(--c-navy); background: var(--c-soft); }
.home-tabs .nav-link.active { color: var(--c-navy); border-bottom-color: var(--c-gold); background: none; }
.tab-pane .section-head h2 { font-size: 1.25rem; }

/* Atalhos da home */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: -2.25rem; position: relative; z-index: 4; }
.quick-link { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-md); color: var(--c-ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.quick-link:hover { transform: translateY(-3px); border-color: var(--c-gold); color: var(--c-ink); }
.quick-link .ico { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: .7rem; background: var(--c-gold-soft); color: var(--c-gold-dark); font-size: 1.35rem; }
.quick-link strong { display: block; font-size: 1rem; }
.quick-link span.sub { color: var(--c-muted); font-size: .85rem; }

/* Cards de leilão */
.auction-card { position: relative; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; background: #fff; }
.auction-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.auction-card-photo { display: block; aspect-ratio: 4 / 3; background: var(--c-soft); overflow: hidden; }
.auction-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.auction-card:hover .auction-card-photo img { transform: scale(1.05); }
.auction-card-status { position: absolute; top: .75rem; left: .75rem; right: auto; border-radius: 2rem; padding: .4em .8em; font-weight: 700; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.auction-card .card-body { padding: 1.1rem 1.15rem 1.2rem; }
.auction-card .card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; min-height: 2.65em; }
.auction-card .card-title a { color: var(--c-navy); }
.auction-card .card-title a:hover { color: var(--c-gold-dark); }
.auction-meta li { display: flex; gap: .5rem; align-items: baseline; }
.auction-meta li::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c-gold); transform: translateY(-.1em); }
.auction-price { font-size: 1.3rem; font-weight: 800; color: var(--c-navy); }
.badge.text-bg-success { background: #1f8f5f !important; }
.badge.text-bg-primary { background: var(--c-navy-2) !important; }
.badge.text-bg-warning { background: #e7a21a !important; color: #1b1304 !important; }
.badge.text-bg-secondary { background: #6b7685 !important; }

/* Cabeçalho das páginas internas */
.page-head { position: relative; margin-bottom: 2rem; padding: 2rem 2rem; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 100%); overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 14rem; height: 14rem; border-radius: 50%; background: radial-gradient(circle, rgba(200, 150, 62, .35), transparent 70%); }
.page-head h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; }
.page-head p { position: relative; z-index: 1; margin: .4rem 0 0; color: #cfd9e6; }
.back-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; padding: .3rem .8rem; border-radius: 2rem; background: rgba(255, 255, 255, .14); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.back-link:hover { background: var(--c-gold); color: #1b1304; }
.breadcrumb-lite { font-size: .85rem; color: var(--c-muted); }
.breadcrumb-lite a { text-decoration: none; }

/* Texto de páginas (vem do editor, já sanitizado). Largura de leitura e mídia responsiva. */
.page-content { max-width: 52rem; line-height: 1.7; }
.page-content h2, .page-content h3 { color: var(--c-navy); font-weight: 700; margin-top: 1.8rem; }
.page-content img { max-width: 100%; height: auto; border-radius: .6rem; }
.page-content iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.page-content table { width: 100%; max-width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.page-content th, .page-content td { padding: .4rem .6rem; border: 1px solid var(--bs-border-color); }
.page-content blockquote { padding-left: 1rem; border-left: .25rem solid var(--c-gold); color: var(--c-muted); }

/* Detalhe do anúncio */
.gallery-main { max-height: 520px; object-fit: contain; background: var(--c-soft); border-radius: var(--radius); }
.gallery-thumb { opacity: .7; border-radius: .5rem; transition: opacity .15s; }
.gallery-thumb.active, .gallery-thumb:hover, .gallery-thumb:focus-visible { opacity: 1; outline: 2px solid var(--c-gold); outline-offset: 2px; }
.info-panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; position: sticky; top: 5.5rem; }
.info-panel dt { color: var(--c-muted); font-weight: 600; }
.info-panel .price-box { background: var(--c-soft); border-left: 4px solid var(--c-gold); border-radius: .5rem; padding: .75rem 1rem; margin-bottom: 1rem; }
.info-panel .price-box small { display: block; color: var(--c-muted); }
.info-panel .price-box strong { font-size: 1.35rem; color: var(--c-navy); }

/* Formulários para download */
.doc-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.doc-item:hover { border-color: var(--c-gold); }
.doc-item .ext { display: grid; place-items: center; flex: none; width: 3rem; height: 3.4rem; border-radius: .5rem; background: #fdecea; color: #b3261e; font-weight: 800; font-size: .75rem; }

/* Chamada para vender */
.cta-band { background: linear-gradient(120deg, var(--c-navy), var(--c-navy-2)); color: #fff; border-radius: var(--radius); padding: 2.25rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -2rem; bottom: -4rem; width: 14rem; height: 14rem; border-radius: 50%; background: radial-gradient(circle, rgba(200, 150, 62, .4), transparent 70%); }
.cta-band h2 { margin: 0 0 .25rem; font-weight: 800; font-size: 1.6rem; }
.cta-band p { margin: 0; color: #cfd9e6; }
.cta-band .btn { position: relative; z-index: 1; }

/* Formulários em geral */
.form-control, .form-select { border-radius: .6rem; padding: .6rem .85rem; border-color: #cbd3de; }
.form-control:focus, .form-select:focus { border-color: var(--c-gold); box-shadow: 0 0 0 .2rem rgba(200, 150, 62, .25); }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid var(--c-line); }
.contact-list li:last-child { border-bottom: 0; }

/* Rodapé */
.site-footer { background: var(--c-footer); color: #c4cfdd; margin-top: 0 !important; padding-top: 3.5rem !important; }
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .12em; font-weight: 700; margin-bottom: 1rem; }
.site-footer h2::after { content: ""; display: block; width: 2rem; height: 3px; margin-top: .5rem; background: var(--c-gold); border-radius: 2px; }
.site-footer a { color: #e6edf5; text-decoration: none; }
.site-footer a:hover { color: var(--c-gold); text-decoration: underline; }
.site-footer hr { border-color: rgba(255, 255, 255, .12) !important; opacity: 1; }

/* Campo-isca do formulário de contato: fora da tela, mas ainda no HTML para os robôs preencherem. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mw-reading { max-width: 52rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .auction-card:hover, .quick-link:hover { transform: none; }
}

@media (max-width: 575.98px) {
    .quick-links { grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: -1.5rem; }
    .quick-link { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem; }
    .quick-link span.sub { display: none; }
    .section { padding: 2.25rem 0; }
}
.back-link-dark { background: var(--c-soft); color: var(--c-navy); border: 1px solid var(--c-line); }
.back-link-dark:hover { background: var(--c-gold); color: #1b1304; border-color: var(--c-gold); }

/* Com logo largo, o menu não quebra em duas linhas: ajusta o espaçamento em telas médias. */
.navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link { padding: .45rem .5rem !important; font-size: .88rem; }
    .navbar-nav > li:last-child .nav-link { margin-left: .1rem; }
    .site-logo { max-height: 64px; max-width: 16rem; }
}

.footer-credit { color: #8d9bb0; }
.footer-credit a { color: #e6edf5; font-weight: 600; }

/* Aviso de cookies (LGPD) e mapa sob demanda */
.cookie-notice { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080; display: flex; align-items: center; gap: 1rem; max-width: 56rem; margin: 0 auto; padding: .9rem 1.1rem; background: #0f2540; color: #e6edf5; border-radius: .9rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); font-size: .88rem; line-height: 1.45; }
.cookie-notice[hidden] { display: none; }
.cookie-notice a { color: #f2c14e; font-weight: 600; }
.cookie-notice-btn { flex: none; white-space: nowrap; }
@media (max-width: 575.98px) { .cookie-notice { flex-direction: column; align-items: stretch; left: .5rem; right: .5rem; bottom: .5rem; } }
.map-consent { background: var(--c-soft); }
.map-frame { aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
