:root {
    /* Background */
    --bg-navbar: #212529;
    --bg-dark: #f6f1e4;
    --bg-light: #ffffff;
    --white: #ffffff;
    --black: #212529;

    /* Elementos principais */
    --primary: #212529;
    --primary-hover: #f6f1e4;

    --link-navbar: #CBBC6A;
    --link-navbar-hover: #f6f1e4;
    --link-on-light: #CBBC6A;
    --link-on-light-hover: #212529;
    --link-on-dark: #CBBC6A;
    --link-on-dark-hover: #212529;

    --text-on-dark: #212529;
    --text-on-light: #212529;
    
    --hr: #212529;
    --arrow: #CBBC6A;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebe5b;

    /* Utilitarios */
    --border: #00000026;
    --focus-ring: rgba(200, 178, 125, 0.35);
    --focus-ring-soft: rgba(200, 178, 125, 0.3);
    
    --hero-1-bg: var(--primary-hover);

    --hero-1-overlay-dark-1: rgba(0, 0, 0, 0.72);
    --hero-1-overlay-dark-2: rgba(0, 0, 0, 0.48);
    --hero-1-overlay-dark-3: rgba(0, 0, 0, 0.16);

    --hero-1-overlay-light-1: rgba(255, 255, 255, 0.78);
    --hero-1-overlay-light-2: rgba(255, 255, 255, 0.6);
    --hero-1-overlay-light-3: rgba(255, 255, 255, 0.35);
    
    --one-anim-duration: 1.2s;
}

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    margin-top: 55px;
}

[id] {
    scroll-margin-top: 60px;
}

/* Acessibilidade: foco */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
.btn:focus,
.btn:focus-visible,
.form-control:focus,
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem var(--focus-ring);
    border-color: var(--primary);
}

/* Navbar */
.navbar {
    background-color: var(--bg-navbar) !important;
}


.navbar .nav-link {
    transition: color 0.5s ease;
    color: var(--link-navbar) !important;
    position: relative;
}

.navbar .navbar-brand {
    color: var(--link-navbar) !important;
}

.navbar .navbar-toggler {
    color: var(--link-navbar) !important;
    border-color: color-mix(in srgb, var(--link-navbar) 35%, transparent) !important;
}

.navbar .navbar-toggler:hover,
.navbar .navbar-toggler:focus,
.navbar .navbar-toggler:focus-visible {
    color: var(--link-navbar-hover) !important;
    border-color: color-mix(in srgb, var(--link-navbar-hover) 40%, transparent) !important;
}

.navbar .navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 1.5em;
    height: 1.5em;
}

.navbar .navbar-toggler-icon::before {
    content: "";
    position: absolute;
    left: 0.2em;
    right: 0.2em;
    top: 0.34em;
    height: 0.12em;
    border-radius: 0.25rem;
    background-color: currentColor;
    box-shadow: 0 0.35em 0 currentColor, 0 0.7em 0 currentColor;
}

.navbar .one-navbar-brand-text {
    min-width: 0;
}

.navbar .one-navbar-brand-title {
    line-height: 1.1;
}

.navbar .one-navbar-brand-subtitle {
    line-height: 1.1;
}

.navbar .nav-link:hover {
    color: var(--link-navbar-hover) !important;
}

.navbar .dropdown-menu {
    background-color: var(--bg-navbar);
    border: 0;
}

.navbar .dropdown-item {
    color: var(--link-navbar) !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--link-navbar-hover) !important;
    background-color: rgba(203, 188, 106, 0.12);
}

.navbar .nav-link:focus,
.navbar .nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem var(--focus-ring-soft);
}

.navbar img {
    max-height: 75px;
    width: auto;
}

@media (max-width: 991.98px) {
    .navbar .one-navbar-brand {
        max-width: calc(100% - 70px);
    }

    .navbar .one-navbar-brand-title {
        font-size: 1.02rem;
    }

    .navbar .one-navbar-brand-subtitle {
        font-size: 0.76rem;
    }
}

@media (max-width: 576px) {
    .navbar img {
        max-height: 64px;
    }

    .navbar .one-navbar-brand-title {
        font-size: 0.95rem;
    }

    .navbar .one-navbar-brand-subtitle {
        font-size: 0.7rem;
    }
}

/* Hero 1 */
section.one-hero-1 {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--hero-1-bg);
}

section.one-hero-1::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    max-width: 1320px;
    left: 50%;
    transform: translateX(-50%);
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: 0;
}

section.one-hero-1.one-hero-tone-dark .one-hero-1-overlay {
    background: linear-gradient(
        90deg,
        var(--hero-1-overlay-dark-1) 0%,
        var(--hero-1-overlay-dark-2) 60%,
        var(--hero-1-overlay-dark-3) 100%
    );
    z-index: 1;
}

section.one-hero-1.one-hero-tone-light .one-hero-1-overlay {
    background: linear-gradient(
        90deg,
        var(--hero-1-overlay-light-1) 0%,
        var(--hero-1-overlay-light-2) 60%,
        var(--hero-1-overlay-light-3) 100%
    );
    z-index: 1;
}

section.one-hero-1 .container {
    position: relative;
    z-index: 2;
}

section.one-hero-1.one-hero-tone-dark h1,
section.one-hero-1.one-hero-tone-dark p,
section.one-hero-1.one-hero-tone-dark .lead {
    color: var(--text-on-dark) !important;
}

section.one-hero-1.one-hero-tone-light h1,
section.one-hero-1.one-hero-tone-light p,
section.one-hero-1.one-hero-tone-light .lead {
    color: var(--text-on-light) !important;
}

section.one-hero-1 h1 {
    max-width: 38rem;
}

@media (min-width: 992px) {
    section.one-hero-1::before {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    section.one-hero-1::before {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    section.one-hero-1::before {
        max-width: 1320px;
    }
}

@media (min-width: 768px) {
    section.one-hero-1::before {
        background-size: contain;
        background-position: right center;
    }

    section.one-hero-1 .lead {
        max-width: 38rem;
    }
}

/* Empreendimento 1 */
.one-empreendimento-1-carousel {
    position: relative;
}

.one-empreendimento-1-carousel-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.one-empreendimento-1-carousel-caption {
    position: static;
    text-align: left;
    background-color: color-mix(in srgb, var(--primary) 7%, var(--white));
    color: var(--text-on-light);
    padding: 0.38rem 0.72rem !important;
    text-shadow: none;
}

.one-empreendimento-1-carousel-caption p {
    font-size: clamp(0.76rem, 1.05vw, 0.9rem);
    line-height: 1.2;
}

/* Carrossel (controles, indicadores e setas) */
.one-carousel-controls .carousel-control-prev-icon,
.one-carousel-controls .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 1) !important;
    border-radius: 20%;
    border: 1px solid var(--primary);
    position: relative;
    background-image: none !important;
    filter: none !important;
    pointer-events: auto;
}

.one-carousel-controls .carousel-control-prev-icon::after,
.one-carousel-controls .carousel-control-next-icon::after {
    content: "";
    position: absolute;
    inset: 28%;
    background-color: var(--primary);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.one-carousel-controls .carousel-control-prev-icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.one-carousel-controls .carousel-control-next-icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 1 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 1 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.one-carousel-controls .carousel-control-prev,
.one-carousel-controls .carousel-control-next {
    pointer-events: none;
    opacity: 1;
}

.one-carousel-controls .carousel-control-prev:hover .carousel-control-prev-icon,
.one-carousel-controls .carousel-control-next:hover .carousel-control-next-icon {
    box-shadow: 0 0 0 1px rgba(15, 20, 32, 0.3);
}

.one-empreendimento-1-panel {
    border: 0;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
}

.one-empreendimento-1-logo {
    width: 100px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: center;
}

.one-empreendimento-1-logo-placeholder {
    width: 100px;
    min-height: 132px;
    padding: 0.55rem;
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
    background-color: color-mix(in srgb, var(--primary) 4%, var(--white));
    color: color-mix(in srgb, var(--primary) 78%, var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-line;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.one-empreendimento-1-headline {
    min-width: 0;
}

.one-empreendimento-1-address {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.one-empreendimento-1-address-icon {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.one-empreendimento-1-proposal {
    font-weight: 700;
    color: var(--primary);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.2;
}

.one-empreendimento-1-badge {
    border: 1px solid var(--border);
    background-color: color-mix(in srgb, var(--primary) 10%, var(--white));
    color: var(--text-on-light);
    font-weight: 600;
}

@media (max-width: 576px) {
    .one-empreendimento-1-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem !important;
    }

    .one-empreendimento-1-logo {
        width: 92px;
        flex: 0 0 auto;
    }

    .one-empreendimento-1-logo-placeholder {
        width: 92px;
        min-height: 122px;
        font-size: 0.76rem;
    }

    .one-empreendimento-1-carousel-caption {
        padding: 0.28rem 0.55rem !important;
    }

    .one-empreendimento-1-carousel-caption p {
        font-size: 0.74rem;
    }
}

/* Address 1 */
.one-address-1 .rounded.shadow img {
    max-height: 460px;
    object-fit: cover;
    width: 100%;
}

/* Links gerais */
a {
    color: var(--link-on-light);
}

a:hover,
a:focus {
    color: var(--link-on-light-hover);
}

/* Rodape */
footer a {
    transition: color 0.5s ease;
    color: var(--link-on-light) !important;
    text-decoration: none;
}

.one-footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.one-footer-links i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.one-footer-links a {
    display: block;
}

/* Footer subitems: slightly tighter vertical rhythm */
.one-footer-links li.ms-2 {
    margin-bottom: 0.2rem;
}

.one-footer-links li.ms-2 a {
    line-height: 1.3;
}

footer a:hover {
    color: var(--link-on-light-hover) !important;
}

/* Debug blocks */
.one-debug-section {
    position: relative;
}

.one-debug-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(13, 110, 253, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.35rem;
    padding: 0.3rem 0.45rem;
    pointer-events: auto;
    text-decoration: none;
    cursor: pointer;
}

.one-debug-label:hover,
.one-debug-label:focus {
    color: #fff;
    text-decoration: underline;
}

footer.one-bg-dark a {
    color: var(--link-on-dark) !important;
}

footer.one-bg-dark a:hover,
footer.one-bg-dark a:focus {
    color: var(--link-on-dark-hover) !important;
}

footer.one-bg-dark .text-primary {
    color: var(--text-on-dark) !important;
}

/* Seções (background) */
section.one-bg-dark,
footer.one-bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

section.one-bg-light,
footer.one-bg-light {
    background-color: var(--bg-light);
    color: var(--text-on-light);
}

section.one-bg-dark h1,
section.one-bg-dark h2,
section.one-bg-dark h3,
section.one-bg-dark h4,
section.one-bg-dark h5,
section.one-bg-dark h6,
footer.one-bg-dark h1,
footer.one-bg-dark h2,
footer.one-bg-dark h3,
footer.one-bg-dark h4,
footer.one-bg-dark h5,
footer.one-bg-dark h6 {
    color: inherit;
}

/* Lead: contraste consistente em seções escuras */
section.one-bg-dark .lead {
    color: var(--text-on-dark) !important;
}

/* Contraste por contexto de fundo */
section.one-bg-dark a:not(.btn) {
    color: var(--link-on-dark) !important;
}

section.one-bg-dark a:not(.btn):hover,
section.one-bg-dark a:not(.btn):focus {
    color: var(--link-on-dark-hover) !important;
}

section.one-bg-light a:not(.btn) {
    color: var(--link-on-light) !important;
}

section.one-bg-light a:not(.btn):hover,
section.one-bg-light a:not(.btn):focus {
    color: var(--link-on-light-hover) !important;
}

section.one-bg-dark .text-primary,
footer.one-bg-dark .text-primary {
    color: var(--text-on-dark) !important;
}

/* Tipografia e botoes */
.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--text-on-dark) !important;
    border-color: var(--text-on-dark) !important;
    color: var(--bg-dark) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--link-navbar) !important;
    border-color: var(--link-navbar) !important;
    color: var(--black) !important;
}

.btn.one-btn-whatsapp {
    background-color: var(--whatsapp) !important;
    border-color: var(--whatsapp) !important;
    color: var(--white) !important;
}

.btn.one-btn-whatsapp:hover,
.btn.one-btn-whatsapp:focus,
.btn.one-btn-whatsapp:active,
.btn.one-btn-whatsapp:focus-visible {
    background-color: var(--whatsapp-hover) !important;
    border-color: var(--whatsapp-hover) !important;
    color: var(--white) !important;
}

/* Utilitarios */
.one-small-hr {
    width: 50px;
    border: 2px solid var(--hr);
}

section.one-bg-dark .one-small-hr,
footer.one-bg-dark .one-small-hr {
    border-color: var(--text-on-dark);
    opacity: 0.9;
}

/* Botoes flutuantes */
.one-arrow {
    background-color: var(--arrow);
    color: var(--white);
    border: 2px solid var(--white);
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    z-index: 999;
    box-shadow: 0 4px 8px var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 2s ease;
}

.one-arrow.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.one-arrow:hover,
.one-arrow:focus,
.one-arrow:active,
.one-arrow:visited {
    transform: scale(1.1);
    text-decoration: none;
    color: var(--white) !important;
    background-color: var(--arrow);
    border: 2px solid var(--white);
}

.one-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    z-index: 999;
    box-shadow: 0 4px 8px var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: var(--white) !important;
}

.one-whatsapp:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: var(--white) !important;
    background-color: var(--whatsapp-hover);
}

.one-whatsapp:focus,
.one-whatsapp:focus-visible,
.one-whatsapp:active {
    color: var(--white) !important;
}

/* Icones sociais */
.one-social-icon.btn-outline-secondary {
    background-color: transparent !important;
    color: var(--link-on-light) !important;
    border-color: var(--link-on-light);
    box-shadow: none;
}

footer.one-bg-dark .one-social-icon.btn-outline-secondary {
    color: var(--link-on-dark) !important;
    border-color: var(--link-on-dark) !important;
}

.one-social-icon.btn-outline-secondary:hover {
    background-color: transparent !important;
    color: var(--link-on-light-hover) !important;
    border-color: var(--link-on-light-hover);
    box-shadow: none;
}

footer.one-bg-dark .one-social-icon.btn-outline-secondary:hover {
    background-color: transparent !important;
    color: var(--link-on-dark-hover) !important;
    border-color: var(--link-on-dark-hover) !important;
}

.one-social-icon.btn-outline-secondary:focus,
.one-social-icon.btn-outline-secondary:focus-visible,
.one-social-icon.btn-outline-secondary:active {
    background-color: transparent !important;
    color: var(--link-on-light-hover) !important;
    border-color: var(--link-on-light-hover) !important;
    box-shadow: 0 0 0 0.2rem var(--focus-ring-soft);
}

footer.one-bg-dark .one-social-icon.btn-outline-secondary:focus,
footer.one-bg-dark .one-social-icon.btn-outline-secondary:focus-visible,
footer.one-bg-dark .one-social-icon.btn-outline-secondary:active {
    background-color: transparent !important;
    color: var(--link-on-dark-hover) !important;
    border-color: var(--link-on-dark-hover) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Avisos */
#one-copy {
    height: 20px;
    font-size: 0.5rem;
}

/* Animacoes (data-one) */
[data-one] {
    opacity: 0;
    transition: opacity var(--one-anim-duration) ease-out, transform var(--one-anim-duration) ease-out;
}

[data-one].one-in-view {
    opacity: 1;
    transform: translateY(0);
}

[data-one="fade-up"] {
    transform: translateY(60px);
}

[data-one="fade-up"].one-in-view {
    transform: translateY(0);
}

[data-one="zoom-in"] {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: opacity var(--one-anim-duration) ease-out,
    transform var(--one-anim-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

[data-one="zoom-in"].one-in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 404 */
.one-404-illustration {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto 1.5rem;
}

.one-404-illustration-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.one-404-illustration-group {
    position: absolute;
    inset: 0;
    transform: scale(0.75);
    transform-origin: center center;
}

.one-404-illustration-window,
.one-404-illustration-logo,
.one-404-illustration-base {
    position: absolute;
    display: block;
}

.one-404-illustration-window {
    top: 27%;
    left: 45%;
    width: 44.5%;
    height: 44.5%;
    overflow: hidden;
    z-index: 1;
}

.one-404-illustration-logo {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.one-404-illustration-base {
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Mapa estático */
.one-map {
    width: 100%;
    height: auto;
}
