:root {
    /* Background */
    --bg-navbar: #ffffff;
    --bg-light: #FFFFFF;
    --white: #ffffff;

    /* Offsets */
    --navbar-offset: 80px;

    /* Elementos principais */
    --primary: #1051DE;
    --primary-hover: #0A3AB5;

    --link-navbar: #1051DE;
    --link-navbar-hover: #D39B41;
    --link-on-light: var(--primary);
    --link-on-light-hover: #D39B41;

    --text-on-dark: #ffffff;
    --text-on-light: #212529;

    --hr: var(--primary);
    --arrow: var(--primary-hover);
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebe5b;

    /* Utilitarios */
    --border: #00000026;

    --focus-ring: rgba(16, 81, 222, 0.25);
    --focus-ring-soft: rgba(16, 81, 222, 0.2);

    --one-anim-duration: 1.2s;
}

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

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

html {
    background-color: var(--bg-light);
}

body {
    margin-top: var(--navbar-offset);
    background-color: var(--bg-light);
}

main > section {
    margin-bottom: -1px;
}

[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 .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 .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 .nav-link:hover {
    color: var(--link-navbar-hover) !important;
}

.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: 1rem;
    }

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

/* Navbar Simples */
.one-navbar-simples-subtitle {
    height: 36px;
    width: auto;
    margin-left: 0.75rem;
    align-self: center;
    display: block;
}

/* Footer Simples */
footer.one-footer-simples {
    padding-bottom: 6rem;
}

/* Hero Simples */
section.one-hero-simples {
    overflow: hidden;
}

.one-hero-simples-bg {
    display: block;
    width: 100%;
    height: auto;
}

/* Separador de áreas */
.one-area-separator {
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--primary) 45%, transparent) 18%,
        color-mix(in srgb, var(--primary) 45%, transparent) 82%,
        transparent
    );
    margin: 0;
    opacity: 1;
}

/* Cards Images 3 */
.one-cards-images-3 .one-cards-images-3-img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* Gallery Viewer */
body.one-gallery-open {
    overflow: hidden;
}

.one-gallery-viewer[hidden] {
    display: none !important;
}

.one-gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #030503;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.one-gallery-viewer.is-open {
    opacity: 1;
}

.one-gallery-viewer-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    touch-action: none;
    user-select: none;
    cursor: pointer;
}

.one-gallery-viewer-media {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.one-gallery-viewer-img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    pointer-events: none;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.one-gallery-viewer-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    pointer-events: none;
    margin: 0;
    padding: 0.25rem 0.75rem;
    background: rgba(3, 5, 3, 0.55);
    border-radius: 999px;
}

.one-gallery-viewer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(3, 5, 3, 0.78);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.one-gallery-viewer-close i {
    font-size: 1.1rem;
}

.one-gallery-viewer-close:hover,
.one-gallery-viewer-close:focus-visible {
    background: rgba(209, 162, 88, 0.16);
    border-color: rgba(209, 162, 88, 0.55);
    color: var(--primary);
}

/* Address 2 */
section.one-address-2 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* 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;
}

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;
}

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

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;
}

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

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: var(--text-on-dark) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--text-on-dark) !important;
}

.btn-whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--whatsapp);
    --bs-btn-border-color: var(--whatsapp);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--whatsapp-hover);
    --bs-btn-hover-border-color: var(--whatsapp-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--whatsapp-hover);
    --bs-btn-active-border-color: var(--whatsapp-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--whatsapp);
    --bs-btn-disabled-border-color: var(--whatsapp);
}

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

/* 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: 1090;
    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: 1090;
    box-shadow: 0 4px 8px var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

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

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

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

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

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

/* 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;
}
