/* ============================================================
   RESET E BASE (global)
   ============================================================ */

:root {
    --cor-principal: #F5D100;
}

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style: none;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg, #202020, #404040);
}

/* ============================================================
   NAVBAR — HAMBÚRGUER À ESQUERDA, MENU CENTRO, USUÁRIO À DIREITA
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: #0a0a0a;
    border-bottom: 2px solid var(--cor-principal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-container {
    width: 100%;
    height: 80px;
    padding: 0 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-left {
    flex-shrink: 0;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-principal);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cor-principal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-right {
    margin-left: auto;
    flex-shrink: 0;
}

/* ---------- Perfil do usuário ---------- */
.user-wrapper {
    position: relative;
    z-index: 3100;
}

.user-area {
    height: 52px;
    padding: 4px 14px 4px 6px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffe066, var(--cor-principal));
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-area:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 209, 0, 0.35);
}

.user-area:active {
    transform: translateY(0) scale(0.98);
}

.user-area:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: var(--cor-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 2px solid var(--cor-principal);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.user-area:hover .user-avatar {
    transform: rotate(5deg) scale(1.05);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    max-width: 120px;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info small {
    font-size: 10px;
    color: #4a3d00;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.user-arrow {
    font-size: 16px;
    color: #111;
    opacity: 0.7;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.user-wrapper.open .user-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    padding: 10px;
    background: linear-gradient(180deg, #171717, #0d0d0d);
    border: 1px solid rgba(245, 209, 0, 0.3);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 3100;
}

.user-wrapper.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ececec;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown a:hover {
    background: var(--cor-principal);
    color: #111;
}

.user-dropdown a:focus-visible {
    outline: 2px solid var(--cor-principal);
    outline-offset: -2px;
}

.user-dropdown a:last-child {
    margin-top: 4px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-dropdown i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(245, 209, 0, 0.12);
    color: var(--cor-principal);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown a:hover i {
    background: rgba(17, 17, 17, 0.15);
    color: #111;
}

/* ---------- Hambúrguer (mobile) ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Menu mobile off-canvas ---------- */
.nav-menu-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    border-right: 2px solid var(--cor-principal);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 2100;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.nav-menu-mobile.open {
    left: 0;
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(245, 209, 0, 0.3);
    margin-bottom: 20px;
}

.mobile-header span {
    color: var(--cor-principal);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-mobile {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.close-mobile:hover {
    color: var(--cor-principal);
}

.nav-menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-menu-mobile a {
    display: block;
    padding: 16px 24px;
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    border-left: 3px solid transparent;
}

.nav-menu-mobile a:hover,
.nav-menu-mobile a.active {
    background: rgba(245, 209, 0, 0.1);
    color: var(--cor-principal);
    border-left-color: var(--cor-principal);
    padding-left: 30px;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2050;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.page-blur {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2500;
}

.page-blur.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVIDADE DA NAVBAR
   ============================================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 0 0 16px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .user-area {
        height: 46px;
        padding: 3px 10px 3px 4px;
        gap: 8px;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .user-info {
        max-width: 80px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-arrow {
        display: none;
    }

    .user-wrapper.open .user-dropdown {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 0 0 10px;
    }

    .user-area {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .user-info {
        display: none;
    }

    .user-dropdown {
        width: 190px;
        right: -5px;
    }

    .hamburger span {
        width: 24px;
    }
}

/* ============================================================
   BOTÃO LATERAL FIXO – AGENDAR (estilo "aba" encostada na lateral)
   ============================================================ */
.btn-agendar-lateral {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px 0 30px;
    background: linear-gradient(135deg, var(--cor-principal), #ffd900);
    color: #111;
    border: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.2s, padding 0.3s;
    z-index: 9999;
    cursor: pointer;
    text-decoration: none;
    border-right: none;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    animation: respirar-lateral 2.8s ease-in-out infinite;
}

.btn-agendar-lateral:hover {
    transform: translateY(-50%) translateX(-6px);
    box-shadow: -6px 0 30px rgba(245, 209, 0, 0.4), 0 6px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffe066, var(--cor-principal));
    padding-right: 32px;
}

.btn-agendar-lateral:active {
    transform: translateY(-50%) scale(0.96);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.4);
}

.btn-agendar-lateral:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.btn-agendar-lateral i {
    font-size: 30px;
    color: #111;
    line-height: 1;
    flex-shrink: 0;
}

.btn-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
}

.btn-texto small {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4a3d00;
    opacity: 0.8;
}

.btn-texto span {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.5px;
}

@keyframes respirar-lateral {
    0%, 100% { box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3); }
    50%     { box-shadow: -6px 0 30px rgba(245, 209, 0, 0.5), 0 6px 25px rgba(0, 0, 0, 0.4); }
}

/* ============================================================
   RESPONSIVIDADE DO BOTÃO (mobile)
   ============================================================ */

@media (max-width: 768px) {
    .btn-agendar-lateral {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        height: 50px;
        padding: 0 14px 0 20px;
        gap: 10px;
        border-radius: 14px 0 0 14px;
        border-left-width: 2px;
        box-shadow: -3px 0 16px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
        animation: respirar-lateral-mobile 2.8s ease-in-out infinite;
    }

    .btn-agendar-lateral:hover {
        transform: translateY(-50%) translateX(-4px);
        padding-right: 18px;
    }

    .btn-agendar-lateral i {
        font-size: 24px;
    }

    .btn-texto {
        max-width: 58px;          /* largura suficiente para "AGEN" */
        overflow: hidden;
        white-space: nowrap;
        /* sem text-overflow: ellipsis → sem reticências */
    }

    .btn-texto small {
        display: none;
    }

    .btn-texto span {
        font-size: 16px;
        font-weight: 700;
        display: block;
        width: 100%;
    }

    @keyframes respirar-lateral-mobile {
        0%, 100% { box-shadow: -3px 0 16px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3); }
        50%     { box-shadow: -5px 0 24px rgba(245, 209, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.4); }
    }
}

@media (max-width: 480px) {
    .btn-agendar-lateral {
        height: 44px;
        padding: 0 12px 0 16px;
        gap: 8px;
        border-radius: 12px 0 0 12px;
        border-left-width: 2px;
    }

    .btn-agendar-lateral i {
        font-size: 20px;
    }

    .btn-texto {
        max-width: 48px;          /* ainda menor, cabe "AGEN" */
    }

    .btn-texto span {
        font-size: 14px;
    }
}

/* ============================================================
   CONTEÚDO PRINCIPAL (SERVIÇOS) – ajuste de espaçamento para navbar fixa
   ============================================================ */
.container-servicos {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    max-width: 1300px;
    margin: 120px auto 30px auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container-servicos {
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .container-servicos {
        margin-top: 90px;
        padding: 0 16px;
    }
}

/* ============================================================
   ESTILOS EXISTENTES DA PÁGINA "SERVIÇOS" (mantidos)
   ============================================================ */
.hero-servicos {
    text-align: center;
    margin-bottom: 60px;
}

.hero-servicos h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--cor-principal);
    margin-bottom: 16px;
}

.hero-servicos p {
    font-size: 18px;
    color: #ccc;
}

.servicos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card-servico {
    background: #111;
    border-radius: 28px;
    width: 340px;
    padding: 32px 24px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-servico:hover {
    transform: translateY(-12px);
    border-color: var(--cor-principal);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 60px;
    background: #1e1e1e;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid var(--cor-principal);
}

.card-servico h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--cor-principal);
    margin-bottom: 12px;
}

.preco {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    background: #222;
    padding: 6px 18px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 20px;
}

.tempo-servico {
    color: #999;
    font-size: 13px;
    margin-bottom: 14px;
}

.descricao {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.detalhes {
    width: 100%;
    margin: 10px 0 20px;
    text-align: left;
    background: #1a1a1a;
    padding: 12px 16px;
    border-radius: 20px;
}

.detalhes li {
    color: #ddd;
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-agendar-servico {
    background: var(--cor-principal);
    color: #111;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 14px;
    transition: 0.2s;
    display: inline-block;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

.btn-agendar-servico:hover {
    background: #ffe44d;
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-home {
    background: #0a0a0a;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVIDADE ADICIONAL (para os cards)
   ============================================================ */
@media (max-width: 768px) {
    .hero-servicos h1 {
        font-size: 36px;
    }

    .card-servico {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .hero-servicos h1 {
        font-size: 28px;
    }

    .hero-servicos p {
        font-size: 14px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 45px;
    }

    .preco {
        font-size: 24px;
    }
}