:root {
    /* Background */
    --bg-dark: #F1F2F4;
    --bg-hero: #2A3652;
    --bg-light: #FFFFFF;
    --bg-purple: #2A3652;

    /* Elementos principais */
    --primary: #0d6efd;
    --primary-dark: #2A3652;
    --bg-navbar: #ffffff;
    --link-navbar: #0d6efd;
    --link-navbar-hover: #2A3652;
    --hr: var(--primary);
    --arrow: var(--primary-dark);
    --whatsapp: #25d366;

    /* Utilitários */
    --border: #00000026;

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

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

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

body {
    margin-top: 55px; /* Importante para a navbar flutuante */
}

[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 rgba(45, 54, 84, 0.25);
    border-color: var(--primary);
}

/* Hero (estrutura e imagem de fundo) */
section.one-hero-cover {
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    overflow: hidden;
    background-color: var(--bg-hero);
}

section.one-hero-cover::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-cover .one-hero-cover-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

@media (max-width: 992px) {
    section.one-hero-cover .one-hero-cover-overlay {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
    }
}

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

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

section.one-hero-cover .bi-check-lg {
    color: #E7EBF6 !important;
}

@media (min-width: 768px) {
    section.one-hero-cover {
        background-size: contain;
    }
}

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

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

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

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

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

section.one-hero-cover h1,
section.one-hero-cover h2,
section.one-hero-cover h3,
section.one-hero-cover p,
section.one-hero-cover .lead {
    color: var(--text-inverse) !important;
}

/* 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 .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 rgba(45, 54, 84, 0.2);
}


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


/* Links gerais */
a {
    color: var(--primary);
}

a:hover,
a:focus {
    color: var(--primary-dark);
}

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

/* Footer links: align wrapped text with link text, not the icon */
.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 a:hover {
    color: var(--primary-dark) !important;
}

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

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

section.one-bg-purple {
    background-color: var(--bg-purple);
}

/* Hero (badges e microtipografia) */
.one-hero-tags {
    white-space: nowrap;
    column-gap: 0.4rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.one-hero-tags .list-inline-item {
    margin-right: 0.1rem;
}

.one-hero-tags .list-inline-item:last-child {
    margin-right: 0;
}

.one-hero-badge {
    background-color: var(--bg-light);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}


@media (max-width: 576px) {
    .one-hero-tags {
        font-size: 0.8rem;
        column-gap: 0.1rem;
    }
}

.one-hero-tags + p {
    position: relative;
    z-index: 2;
}


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

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !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: #fff !important;
}

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

.one-card-img {
    width: 100%;
    height: auto;
}

/* Projetos (galeria do carrossel) */
#galeria .carousel-item img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#galeria {
    position: relative;
}

.one-gallery-indicators {
    position: static;
    margin-top: 0.75rem;
}

#galeria .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    #galeria .carousel-caption {
        position: static;
        background-color: #2D3654;
    }

    .one-gallery-indicators {
        margin-top: 0.5rem;
    }

    #galeria {
        --one-gallery-caption-height: 96px;
    }

    #galeria .carousel-control-prev,
    #galeria .carousel-control-next {
        height: calc(100% - var(--one-gallery-caption-height));
        top: 0;
        bottom: auto;
    }
}


.one-list-indent li {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
}

.one-list-indent i {
    flex: 0 0 auto;
    width: 1.25rem;
    margin-top: 0.15rem;
}

.one-list-indent span {
    display: block;
}

/* Call to action */
section.one-call-to-action {
    min-height: 250px;
    position: relative;
}

img.one-call-to-action-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: right center;
    z-index: -1;
    pointer-events: none;
}

/* Links em seções específicas */
section#contato a {
    color: var(--primary) !important;
}

section#contato a:hover,
section#contato a:focus {
    color: var(--primary-dark) !important;
}

section#localizacao a {
    color: var(--primary) !important;
}

section#localizacao a:hover,
section#localizacao a:focus {
    color: var(--primary-dark) !important;
}

/* Botões flutuantes */
.one-arrow {
    background-color: var(--arrow);
    color: white;
    border: 2px solid 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;
    transition: transform 0.2s ease;
}

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

.one-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp);
    color: white;
    border: 2px solid 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;
}

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

/* Ícones 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: 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: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 54, 84, 0.2);
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 3rem;
    opacity: 0.7;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    opacity: 1;
}

#testimonialsCarousel .testimonial-body {
    display: flex;
    flex-direction: column;
}

#testimonialsCarousel .testimonial-text {
    flex: 1;
}

#testimonialsCarousel .testimonial-text p {
    font-size: 0.95rem;
    line-height: 1.55;
}

#testimonialsCarousel .testimonial-avatar {
    width: 56px;
    height: 56px;
}

#testimonialsCarousel .carousel-item .testimonial-card {
    margin-left: 3rem;
    margin-right: 3rem;
}

#testimonialsCarousel .carousel-control-prev {
    left: 0.25rem;
}

#testimonialsCarousel .carousel-control-next {
    right: 0.25rem;
}

/* 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-carousel-controls .carousel-indicators [data-bs-target] {
    background-color: var(--primary);
    opacity: 0.4;
}

.one-carousel-controls .carousel-indicators .active {
    opacity: 1;
}

#projetos .carousel-indicators {
    margin-bottom: 0;
}

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


/* Animações (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);
}
