/* ========================================================================== */
/* Theme tokens                                                               */
/* ========================================================================== */
:root {
    color-scheme: light;

    /* Background */
    --bg-dark: #E8E8E8;
    --bg-light: #FFFFFF;
    --bg-hero: #1A1A1A;

    /* Cor principal */
    --primary: #1A52E8;
    --primary-hover: #1646C5;
    --support: #519BE4;
    --bs-primary: var(--primary);
    --bs-primary-rgb: 26, 82, 232; /* #1A52E8 */
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--support);
    --bs-link-color-rgb: 26, 82, 232;
    --bs-link-hover-color-rgb: 81, 155, 228;
    --link-hover: var(--support);
    --link-navbar: var(--text-body);
    --whatsapp: #25d366;

    /* Tipografia e utilitários */
    --text: #1A1A1A;
    --text-body: #333333;
    --text-muted: #6c757d;
    --text-soft: #555555;
    --text-inverse: #FFFFFF;
    --border: #E8E8E8;
    --highlight: #fff9c4;

    /* Componentes */
    --badge-bg: rgba(81, 155, 228, 0.1);
    --badge-text: var(--support);
    --badge-border: rgba(81, 155, 228, 0.35);
    --hero-dot: rgba(81, 155, 228, 0.2);
    --bg-cta: #1A1A1A;
    --pricing-featured-accent: var(--support);
    --success: #198754;

    /* Bootstrap tokens */
    --bs-body-bg: var(--bg-light);
    --bs-body-color: var(--text-body);
    --bs-secondary-color: var(--text-muted);
    --bs-emphasis-color: var(--text);
    --bs-heading-color: var(--text);
    --bs-border-color: var(--border);
    --bs-tertiary-bg: var(--bg-dark);
    --bs-accordion-border-color: var(--border);
    --bs-accordion-btn-border-color: var(--border);
    --bs-light-bg-subtle: var(--bg-light);
    --bs-secondary-bg: var(--bg-light);

    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --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 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9375rem;
    margin-top: 55px; /* Importante para a navbar flutuante */
    color: var(--text-body);
    background-color: var(--bg-hero);
}

h1, h2 {
    font-family: var(--font-heading);
}

h2 {
    font-size: clamp(2rem, calc(1.84rem + 0.7vw), 2.36rem);
}

/* Posição da section quando usada na âncora */
[id] {
    scroll-margin-top: 20px;
}

/* Apara bloquear o scroll da página quando o modal for aberto. */
/* Só funciona no Chrome. Não funciona no Safari. */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.accordion,
.accordion-item,
.accordion-button {
    border-color: var(--border);
}

.alert-light {
    --bs-alert-bg: var(--bg-light);
    --bs-alert-color: var(--text-body);
    --bs-alert-border-color: var(--border);
}

.bg-white,
.bg-light,
.bg-body,
.bg-body-tertiary,
.bg-body-secondary,
.bg-body-emphasis {
    background-color: var(--bg-light) !important;
    color: var(--text-body) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

/* ========================================================================== */
/* Navbar                                                                      */
/* ========================================================================== */
.navbar {
    background-color: var(--bg-light) !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar.one-navbar-hidden {
    transform: translateY(-100%);
}

.navbar.one-navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.975) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

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

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

/* ========================================================================== */
/* Footer                                                                      */
/* ========================================================================== */
footer a {
    transition: color 0.5s ease;
    color: var(--text) !important;
    text-decoration: none;
}

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

footer.one-bg-black {
    color: var(--text-inverse);
}

footer.one-bg-black h1,
footer.one-bg-black h2,
footer.one-bg-black h3,
footer.one-bg-black h4,
footer.one-bg-black h5,
footer.one-bg-black h6,
footer.one-bg-black p {
    color: var(--text-inverse) !important;
}

footer.one-bg-black a {
    color: var(--text-inverse) !important;
}

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

footer .bi-chevron-right {
    color: inherit !important;
}

/* ========================================================================== */
/* Section backgrounds                                                         */
/* ========================================================================== */
section.one-bg-dark, footer.one-bg-dark {
    background-color: var(--bg-dark);
}

section.one-bg-light > .container,
section.one-bg-dark > .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

section.one-bg-black, footer.one-bg-black {
    background-color: var(--bg-hero);
}

section.one-bg-black h1,
section.one-bg-black h2,
section.one-bg-black h3,
section.one-bg-black h4,
section.one-bg-black h5,
section.one-bg-black h6,
section.one-bg-black p,
section.one-bg-black .lead,
section.one-bg-black .text-light,
section.one-bg-black .text-white {
    color: var(--text-inverse) !important;
}

/* Cabeçalho padrão de seção */
@media (min-width: 768px) {
    .one-section-desc {
        max-width: 60%;
    }
}

/* ========================================================================== */
/* About - Stats                                                               */
/* ========================================================================== */
.one-about-stat-value {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-heading);
}

.one-about-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================================================== */
/* Hero                                                                        */
/* ========================================================================== */
section.one-hero {
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px);
    background-size: 24px 24px;
}

section.one-hero img {
    max-height: 480px;
    width: auto;
}

.one-hero-h1 {
    font-size: clamp(2.86rem, 6vw, 4.2rem);
    line-height: 1.1;
}

.one-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(81, 155, 228, 0.08);
    border: 1px solid rgba(81, 155, 228, 0.25);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-body);
}

.one-hero-pill-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--support);
    flex-shrink: 0;
    animation: one-pill-pulse 1.8s ease-in-out infinite;
}

@keyframes one-pill-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 82, 232, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(26, 82, 232, 0); }
}

.one-hero-desc {
    color: var(--text-soft);
    max-width: 420px;
}

.one-hero-text-link {
    color: var(--primary);
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.one-hero-text-link-arrow {
    transition: transform 0.2s ease;
}

.one-hero-text-link:hover .one-hero-text-link-arrow {
    transform: translateY(4px);
}

/* Link "ver mais" usado nos resumos da home (Quem Atendemos, Portfólio, Blog, FAQ) */
.one-more-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.one-more-link-arrow {
    transition: transform 0.2s ease;
}

.one-more-link:hover .one-more-link-text {
    text-decoration: underline;
}

.one-more-link:hover .one-more-link-arrow {
    transform: translateX(4px);
}

.one-hero-trust {
    color: var(--text-muted);
}

/* ========================================================================== */
/* Process / CTA                                                              */
/* ========================================================================== */
.one-como-funciona-step {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

section.one-call-to-action {
    background-color: var(--bg-cta);
}

.one-cta-desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

.one-cta-badges {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================================================== */
/* Botões                                                                      */
/* ========================================================================== */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.btn-whatsapp {
    --bs-btn-color: var(--text-inverse);
    --bs-btn-bg: var(--whatsapp);
    --bs-btn-border-color: var(--whatsapp);
    --bs-btn-hover-color: var(--text-inverse);
    --bs-btn-hover-bg: #20b558;
    --bs-btn-hover-border-color: #1daa52;
    --bs-btn-active-color: var(--text-inverse);
    --bs-btn-active-bg: #1daa52;
    --bs-btn-active-border-color: #1aa04d;
    --bs-btn-disabled-color: var(--text-inverse);
    --bs-btn-disabled-bg: var(--whatsapp);
    --bs-btn-disabled-border-color: var(--whatsapp);
}

.one-social-icon {
    border: none !important;
    font-size: 1.35rem;
}

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

/* ========================================================================== */
/* Cards com hover                                                             */
/* ========================================================================== */
.one-card-hover,
.one-card-hover-danger,
.one-card-hover-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.one-card-hover:hover,
.one-card-hover-danger:hover,
.one-card-hover-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.one-card-hover-danger:hover {
    border-color: var(--bs-danger) !important;
}

.one-card-hover-primary:hover {
    border-color: var(--primary) !important;
}

/* ========================================================================== */
/* Seção diferenciais (features)                                              */
/* ========================================================================== */
#diferenciais p.text-primary {
    color: var(--support) !important;
}

/* ========================================================================== */
/* Cards de ícone                                                              */
/* ========================================================================== */
.one-card-icon,
.one-card-icon-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.one-card-icon {
    background-color: rgba(81, 155, 228, 0.12);
    color: var(--support);
}

.one-card-icon-danger {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger);
}

/* ========================================================================== */
/* FAQ accordion                                                               */
/* ========================================================================== */
#faqAccordion .accordion-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem !important;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

#faqAccordion .accordion-item:hover,
#faqAccordion .accordion-item:has(.accordion-collapse.show) {
    border-color: var(--bs-primary);
}

.one-faq-btn {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-weight: 700;
    padding: 1.25rem;
    gap: 1rem;
}

.one-faq-btn::after {
    display: none;
}

.one-faq-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--bs-primary);
    transition: background-color 0.2s ease;
}

.one-faq-icon::before,
.one-faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--bs-primary);
    border-radius: 1px;
    transition: transform 0.25s ease, background-color 0.2s ease;
}

.one-faq-icon::before {
    width: 10px;
    height: 2px;
}

.one-faq-icon::after {
    width: 2px;
    height: 10px;
}

.one-faq-btn:not(.collapsed) .one-faq-icon {
    background-color: var(--bs-primary);
}

.one-faq-btn:not(.collapsed) .one-faq-icon::before,
.one-faq-btn:not(.collapsed) .one-faq-icon::after {
    background-color: var(--text-inverse);
    transform: rotate(45deg);
}

/* ========================================================================== */
/* Pricing                                                                     */
/* ========================================================================== */
.one-pricing-featured {
    background-color: var(--bg-cta);
    border-color: var(--bg-cta) !important;
    color: var(--text-inverse);
}

.one-pricing-name-featured {
    color: rgba(255, 255, 255, 0.65);
}

.one-pricing-tagline-featured {
    color: var(--pricing-featured-accent);
}

.one-pricing-hr-featured {
    border-color: rgba(255, 255, 255, 0.15);
}

.one-pricing-sep-featured {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.one-pricing-currency {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 0.5rem;
    margin-right: 0.1rem;
}

.one-pricing-value {
    font-size: 3.5rem;
    line-height: 1;
}

/* ========================================================================== */
/* Floating actions                                                            */
/* ========================================================================== */
.one-arrow {
    background-color: var(--primary);
    color: var(--text-inverse) !important;
    border: 2px solid var(--text-inverse);
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    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 {
    transform: scale(1.1);
    text-decoration: none;
    color: var(--link-hover) !important;
    background-color: var(--primary);
    border: 2px solid var(--link-hover);
}

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

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

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

/* ========================================================================== */
/* Blog                                                                        */
/* ========================================================================== */
.one-blog, .one-blog-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-body);
}

.one-blog .lead {
    line-height: 1.6;
    font-size: 1rem !important;
}

.one-blog-content {
    line-height: 1.6;
    font-size: 1rem;
}

.one-blog-content p {
    margin-bottom: 1.4rem;
    font-size: 1rem;
}

.one-blog-content h2 {
    font-size: 1.50rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bg-hero);
    line-height: 1.25;
}

.one-blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    line-height: 1.25;
}

.one-blog-content .one-section-header p {
    margin-bottom: 0;
}

.one-blog-content .one-section-header h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.one-blog-content ul,
.one-blog-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.6rem;
}

.one-blog-content li {
    margin-bottom: 0.5rem;
}

.one-blog-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 1.5rem 0 0;
}

.one-blog-content span {
    display: inline;
}

.one-blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-soft);
    font-style: italic;
}

.one-blog-content a {
    color: var(--primary);
    text-decoration: underline;
}

.one-blog h1,
.one-blog-content h2,
.one-blog-content h3 {
    color: var(--bg-hero) !important;
}

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

/* ========================================================================== */
/* Animations (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);
}

.one-fax {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
