/* ==========================================================================
   Variáveis de Cores (Paleta Oficial AOI)
   ========================================================================== */
:root {
    --color-bg-light: #f3eceb;
    /* Fundo creme/off-white */
    --color-primary: #2d4454;
    /* Azul marinho escuro / Slate */
    --color-secondary: #9da3aa;
    /* Azul acinzentado claro */
    --color-muted-1: #84848c;
    /* Cinza médio */
    --color-muted-2: #888c8c;
    /* Cinza / Teal */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset e Tipografia Global
   ========================================================================== */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title-custom {
    font-family: var(--font-heading);
}

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

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

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.bg-secondary-custom {
    background-color: var(--color-secondary) !important;
}

.bg-gray-custom {
    background-color: #e5e0df !important;
    /* Tom ligeiramente mais escuro que o bg */
}

.section-light {
    background-color: #ffffff;
}

.section-dark {
    background-color: var(--color-primary);
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.tracking-wide {
    letter-spacing: 2px;
}

.max-w-700 {
    max-width: 700px;
}

/* ==========================================================================
   Navegação (Navbar)
   ========================================================================== */
.navbar {
    background-color: rgba(243, 236, 235, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(45, 68, 84, 0.08);
}

.navbar-logo {
    height: 45px;
    border-radius: 50%;
    /* Como a logo tem bordas orgânicas, fica elegante */
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--color-muted-1) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn-primary-custom {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
}

.hero-image {
    max-width: 80%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Formato orgânico */
    box-shadow: 0 20px 40px rgba(45, 68, 84, 0.15);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* ==========================================================================
   Serviços & Metodologia & Portfólio
   ========================================================================== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(45, 68, 84, 0.1) !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--color-primary);
    color: #ffffff;
}

.step-circle {
    width: 70px;
    height: 70px;
}

.placeholder-image {
    width: 100%;
    height: 400px;
}

/* ==========================================================================
   Portfolio / Cases
   ========================================================================== */
.portfolio-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(45, 68, 84, 0.1) !important;
}

.portfolio-img-wrapper {
    height: 220px;
    overflow: hidden;
}

.portfolio-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
    /* Efeito de zoom na imagem ao passar o mouse */
}

/* ==========================================================================
   Animações de Entrada (Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.15, 0.45, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Ajustes Mobile */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px 0;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-image {
        max-width: 60%;
        margin-top: 30px;
    }
}

/* ==========================================================================
   Scrollbar Customizada (Barra de Rolagem)
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   Hamburger Icon Animado (Transforma em X)
   ========================================================================== */
.hamburger-icon {
    width: 26px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon .line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Quando o menu abre, o Bootstrap remove a classe .collapsed do botão */
.navbar-toggler:not(.collapsed) .line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================================
   Botão Voltar ao Topo
   ========================================================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 68, 84, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px) scale(1.05);
}

/* ==========================================================================
   Ajustes Responsivos (Centralizar Navbar Mobile)
   ========================================================================== */
@media (max-width: 991px) {

    /* Centraliza o conteúdo da navbar */
    .navbar-nav {
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
    }

    /* Centraliza o botão "Fale Conosco" */
    .navbar-collapse .btn-primary-custom {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 0 auto 1rem auto !important;
    }
}

.hover-primary-bg {
    transition: all 0.3s ease;
}

.hover-primary-bg:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}