/* ============================================================
   menu.css — Página inicial (menucliente.php) — Carriel Barbearia
   VERSÃO: v11.3 (hambúrguer à esquerda, usuário à direita)
   ============================================================ */

:root {
    --cor-principal: #F5D100;
}

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style: none;
}

body {
    min-height: 100vh;
    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;
}

/* ---- Coluna esquerda (hambúrguer) ---- */
.nav-left {
  flex-shrink: 0;
}

/* ---- Menu Desktop (centralizado) ---- */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  max-width: 85vw;

  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 — AVATAR COM INICIAL
   ============================================================ */
.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;
}

/* ============================================================
   HAMBURGUER (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;
}

/* ============================================================
   BOTÃO AMARELO PADRÃO
   ============================================================ */
.btn-primary,
.btn-chamada {
    display: inline-block;
    background: var(--cor-principal);
    color: #111;
    padding: 14px 34px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-primary:hover,
.btn-chamada:hover {
    transform: translateY(-3px);
    background: #ffe44d;
}

.btn-chamada i {
    margin-right: 10px;
}

/* ============================================================
   BOTÃO LATERAL FIXO — AGENDAR
   ============================================================ */
.btn-agendar-lateral {
    position: fixed;
    top: 50%;
    right: -95px;
    transform: translateY(-50%);
    width: 210px;
    height: 78px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--cor-principal), #ffd900);
    color: #111;
    border-radius: 22px 0 0 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: right 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    z-index: 9999;
    overflow: hidden;
    animation: respirar 3s ease-in-out infinite;
}

.btn-agendar-lateral::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 54px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.btn-agendar-lateral::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -130%;
    width: 50px;
    height: 180%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(25deg);
    animation: brilho 4s infinite;
}

.btn-agendar-lateral:hover {
    right: 0;
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 18px 40px rgba(245, 209, 0, 0.35);
}

.btn-agendar-lateral i {
    font-size: 30px;
    color: #111;
    min-width: 30px;
}

.btn-texto {
    display: flex;
    flex-direction: column;
}

.btn-texto small {
    font-size: 11px;
    color: #333;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-texto span {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
}

@keyframes respirar {
    0%, 100% { box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35); }
    50% { box-shadow: 0 15px 42px rgba(245, 209, 0, 0.45); }
}

@keyframes brilho {
    0% { left: -130%; }
    30%, 100% { left: 180%; }
}

/* ============================================================
   FUNDO DESFOCADO (dropdown do usuário)
   ============================================================ */
.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;
}

/* ============================================================
   CARROSSEL
   ============================================================ */
.carousel-section {
    width: 100%;
    position: relative;
    margin-top: 90px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.slide-content h2 span {
    color: var(--cor-principal);
}

.slide-content p {
    font-size: 1.1rem;
    color: #ddd;
    margin: 0;
}

/* ============================================================
   LANDING — QUEM SOMOS
   ============================================================ */
.landing {
    padding: 70px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.landing-imagem img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
}

.landing-texto h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.25;
}

.landing-texto h2 span {
    color: var(--cor-principal);
}

.landing-texto > p {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 55ch;
}

.landing-numeros {
    display: flex;
    gap: 34px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.numero-item {
    display: flex;
    flex-direction: column;
}

.numero-item strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cor-principal);
    line-height: 1;
}

.numero-item span {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #999;
    max-width: 12ch;
}

/* ============================================================
   LOCALIZAÇÃO
   ============================================================ */
.localizacao {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.localizacao h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 36px;
}

.localizacao h2 span {
    color: var(--cor-principal);
}

.localizacao-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.mapa-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    min-height: 320px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
}

.endereco-info {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.endereco-info p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.endereco-info p i {
    color: var(--cor-principal);
    margin-top: 3px;
}

.btn-mapa {
    align-self: flex-start;
    margin-top: 8px;
    background: #2a2a2a;
    color: var(--cor-principal);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-mapa:hover {
    background: var(--cor-principal);
    color: #111;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
    padding: 60px 20px 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.contato h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 36px;
}

.contato h2 span {
    color: var(--cor-principal);
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    padding: 20px;
    transition: 0.3s;
}

.contato-item:hover {
    transform: translateY(-6px);
    border-color: var(--cor-principal);
    box-shadow: 0 10px 30px rgba(245, 209, 0, 0.15);
}

.contato-item i {
    font-size: 1.5rem;
    color: var(--cor-principal);
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(245, 209, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contato-item div {
    display: flex;
    flex-direction: column;
}

.contato-item strong {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contato-item span {
    color: #999;
    font-size: 0.85rem;
}

/* ============================================================
   CHAMADA FINAL (CTA)
   ============================================================ */
.chamada {
    background: linear-gradient(135deg, #111, #1a1a1a);
    padding: 60px 20px;
    text-align: center;
    border-top: 2px solid var(--cor-principal);
    border-bottom: 2px solid var(--cor-principal);
}

.chamada-content {
    max-width: 700px;
    margin: 0 auto;
}

.chamada-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 12px;
}

.chamada-content h2 span {
    color: var(--cor-principal);
}

.chamada-content p {
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-home {
    background: #0a0a0a;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVO — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 24px;
    }
}

/* ============================================================
   RESPONSIVO — TABLET (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 0 0 16px;   /* sem padding à direita */
    }

    .nav-menu {
        display: none; /* esconde menu desktop */
    }

    .hamburger {
        display: flex;
    }

    /* Botão do usuário compacto */
    .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;
    }

    .carousel-section {
        margin-top: 70px;
    }

    .btn-agendar-lateral {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        right: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 0;
    }

    .btn-agendar-lateral:hover {
        right: 20px;
        transform: scale(1.08);
    }

    .btn-agendar-lateral::before,
    .btn-agendar-lateral::after {
        display: none;
    }

    .btn-agendar-lateral i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 0;
        height: auto;
        margin: 0;
        padding: 0;
        font-size: 28px;
        line-height: 1;
        color: #111;
    }

    .btn-texto {
        display: none;
    }

    .landing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .landing-imagem img {
        height: 260px;
    }

    .landing-texto h2 {
        font-size: 1.8rem;
    }

    .localizacao-grid {
        grid-template-columns: 1fr;
    }

    .mapa-container,
    .mapa-container iframe {
        min-height: 260px;
    }

    .localizacao h2,
    .contato h2 {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 160px;
    }

    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .chamada-content h2 {
        font-size: 2rem;
    }
}

/* ============================================================
   RESPONSIVO — MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 0 0 10px;
    }

    /* Esconde o texto do usuário, mantém apenas avatar */
    .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;
    }

    .carousel-section {
        margin-top: 60px;
    }

    .carousel-container {
        height: 130px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .btn-agendar-lateral {
        width: 56px;
        height: 56px;
    }

    .btn-agendar-lateral i {
        font-size: 24px;
    }

    .chamada {
        padding: 32px 16px;
        margin-top: 10px;
    }

    .chamada-content h2 {
        font-size: 1.65rem;
        margin-bottom: 8px;
    }

    .chamada-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .btn-chamada {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .btn-chamada i {
        margin-right: 7px;
    }

    .landing {
        padding: 32px 12px;
    }

    .landing-imagem img {
        height: 200px;
    }

    .landing-texto h2 {
        font-size: 1.5rem;
    }

    .landing-numeros {
        gap: 22px;
    }

    .numero-item strong {
        font-size: 1.6rem;
    }

    .localizacao {
        padding: 32px 12px;
    }

    .localizacao h2,
    .contato h2 {
        font-size: 1.5rem;
    }

    .endereco-info {
        padding: 22px;
    }

    .contato {
        padding: 32px 12px 40px;
    }

    .contato-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contato-item {
        padding: 16px;
        gap: 12px;
    }

    .contato-item i {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}