/* ===========================================
   1. RESET & CONFIGURAÇÕES BASE
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    background-color: #000;
    color: #fff;
}

 .container {
    margin-right: auto;
    margin-left: auto;
    /* width: 100%;
    margin: 0 auto;
    padding: 0 1rem; */
 }
    

.grid { display: grid; }

img { max-width: 100%; height: auto; display: block; }

a, button {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

/* ===========================================
   2. COMPONENTES
   =========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: #ffb22c;
    color: #000;
    font-weight: 650;
    border-radius: 0.375rem;
    padding: 0.35rem 1.25rem;
    border: 2px;
    transition: all 0.25 ease;
}

.btn-primary:hover {
    transform: scale(0.98) !important;
}

.btn-secundario {
    display: inline-flex !important; /* Mudamos para inline-flex para ele aceitar largura controlada */
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #ffb22c;
    font-weight: 700;
    border-radius: 5px;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* PADRÃO MOBILE: Largura total */
    width: 100%;
    margin-top: 20px;
}
.btn-secundario:hover {
    transform: scale(1.25) !important;
}

@media (min-width: 768px) {
    .btn-secundario {
        /* No computador, ele só terá 300px de largura */
        width: 300px !important; 
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.btn-secundario:hover {
    transform: scale(1.05) !important; /* Cuidado: 1.25 era muito grande, 1.05 é mais elegante */
    background-color: #1a1a1a;
}


/* Estilo Base do Card (Unidades e Serviços) */
.card {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* CLIENTES */

.clientes-grid {
    display: grid;
    /* No mobile começa com 1, no desktop mudamos via Media Query abaixo */
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    max-width: 72rem;
    margin: 3rem auto 0;
}

/* Quando a tela for maior que 641px (Desktop) */
@media (min-width: 641px) {
    .clientes-grid {
        grid-template-columns: repeat(3, 1fr); /* Divide em 3 colunas */
    }
}

.card.clientes-card {
    background: #000000 !important;
    color: #ffb22c !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem;
    padding: 2rem; /* Aumenta o respiro interno do texto */
    text-align: center; /* Centraliza o texto do depoimento */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Garante centralização de todos os itens */    
}

/* Foto do Cliente dentro do Card */
.cliente-foto {
    width: 260px;           /* Largura da foto */
    height: 40px;          /* Altura da foto */
    border-radius: 50%;    /*Deixa a foto redonda*/
    object-fit: contain;     /* Não distorce a imagem */
    object-position: center;
    /* CENTRALIZAÇÃO X E Y */
    margin: 10px auto 30px; /* 0 auto centraliza no X | 1.5rem é o espaço Y (embaixo da foto) */
    
    /* border: 2px solid #ffb22c; Bordinha dourada para destacar */
    display: block;        /* Garante que o margin auto funcione */
}

.clientes-card h3 { font-weight: 700; margin-bottom: 0.25rem; }
.clientes-card .subtitle { color: #d1d5db; font-size: 0.975rem; margin-bottom: 1rem; }
.clientes-card .price { font-weight: 700; font-size: 1.875rem; }

/* ===========================================
   SERVIÇOS (ESTILO DOURADO FIXO)
   =========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 72rem;
    margin: 3rem auto 0;
}

/* Card Padrão (Branco com borda) */
.card.service-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e5e7eb !important; /* A bordinha que você pediu */
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.service-card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* CARD POPULAR (Dourado de fábrica - Cabelo e Barba) */
.card.service-card-popular {
    background-color: #ffb22c !important; /* Dourado fixo */
    border: 1px solid #ffb22c !important; /* Bordinha dourada */
    color: #000000 !important;
    transform: scale(1.05); /* Já começa maior */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hover do Card Popular (Mantém o dourado e cresce mais) */
.card.service-card-popular:hover {
    transform: scale(1.08) !important;
    background-color: #ffb22c !important; /* Garante que continua dourado no hover */
    box-shadow: 0 12px 24px rgba(255, 178, 44, 0.4) !important;
}

.popular-tag {
    background-color: #000000;
    color: #ffb22c;
    font-size: 0.75rem;
    padding: 0.125rem 0.625rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Ajustes de texto para cards brancos */
.service-card h3 { font-weight: 700; margin-bottom: 0.25rem; }
.service-card .subtitle { color: #6b7280; font-size: 0.875rem; margin-bottom: 1rem; }
.service-card .price { font-weight: 700; font-size: 1.875rem; }


/* ===========================================
   3. SEÇÕES & RESPONSIVIDADE
   =========================================== */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 45;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
}
.header-content {
    display: flex;
    align-items: center;       /* Centraliza verticalmente */
    justify-content: space-between; /* Foto na ponta esquerda, Botão na ponta direita */
    max-width: 1200px;         /* Limita a largura para não colar nas bordas no PC */
    margin: 0 auto;            /* Centraliza o container na tela */
    padding: 0 15px;           /* Respiro nas laterais */
}

.logo-header {
    height: 45px;              /* Ajuste conforme o tamanho da sua foto */
    width: auto;
    display: block;
}


.main-footer {
    background-color: #000;
    /* Usando os mesmos 5px de padding do seu .main-header */
    padding: 5px 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Container interno para alinhar igual ao header-content */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo na esquerda, texto na direita */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 60px; /* Força uma altura fixa para bater com o header se necessário */
}

.footer-logo {
    height: 45px; /* Mesma altura da logo do header */
    width: auto;
    display: block;
}

.footer-text {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin: 0; /* Remove margens que aumentam a caixa */
}

/* Ajuste mobile para o footer não quebrar */
@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }
}


.hero { min-height: 100vh; display: flex; align-items: center; position: relative; }
.hero-title { font-size: 3rem; font-weight: 700; }
.hero-title span { color: #ffb22c; }


.section-light { padding: 5rem 0; background: #fff; color: #000; }

.section-dark { padding: 5rem 0; background: #000; }


.section-amarelo { padding: 5rem 0; background: #ffb22c; }


.section-darkcapa {
    display: flex !important;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    align-items: flex-start;  /* Alinha o conteúdo à esquerda */
    
    width: 100% !important;
    height: 100vh !important;     /* Força 100% da altura da visão do usuário */
    min-height: 100vh !important; /* Garante que não encolha */
    
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;

    /* Fundo com a Imagem */
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%),
        url('img/capalp.jpg') !important;
    
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important; /* Efeito premium no Desktop */
}

/* Ajuste do container interno para não espalhar */
.section-darkcapa .container {
    width: 100%;
    max-width: 800px !important; 
    margin-left: 10% !important; /* Afasta o texto da borda esquerda */
    padding: 0 20px !important;
    background: transparent !important; /* Garante que não tenha fundo branco matando a foto */
}
@media (max-width: 768px) {
    .section-darkcapa {
        background-attachment: scroll !important; /* Melhor performance no mobile */
        justify-content: center;
        align-items: center; /* Centraliza no meio da tela no celular */
    }
    .section-darkcapa .container {
        margin-left: 0 !important;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem !important;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Tamanho de impacto para o primeiro contato */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Garante que a próxima seção comece exatamente onde a foto acaba */
.section-light, .section-dark {
    position: relative;
    z-index: 10;
    background: #fff; /* Ou #000 dependendo da seção */
}



/* BREAKPOINTS */
@media (max-width: 640px) {
    .container { padding: 0 16px !important; }
    .hero-title { font-size: 2.5rem !important; }
    .grid { grid-template-columns: 1fr !important; gap: 1rem; }
}

@media (min-width: 641px) {
    .units-grid, .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .hero-title { font-size: 4.5rem; }
}

@media (min-width: 1400px) { .container { max-width: 1400px; } }

/* ===========================================
   ESTETIZAÇÃO DAS UNIDADES
   =========================================== */
.rounded-xl {
    border-radius: 0.75rem;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Hierarquia de Textos (Cores exatas do original) */
.text-gray-300 {
    color: #d1d5db; /* Texto principal do endereço */
}

.text-gray-400 {
    color: #9ca3af; /* Texto do bairro */
}

.text-gray-500 {
    color: #6b7280; /* Texto de apoio (Próximo ao Sepam / Avaliações) */
}

/* Botão e Efeitos */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.active\:scale-105:active {
    transform: scale(1.05);
}

/* GRID E CARDS DE UNIDADES */
.grid-unidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card-unidade {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.card-unidade:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.title-unidade { color: #ffb22c; font-size: 1.5rem; font-weight: 700; }
.subtitle-unidade { color: #9ca3af; font-size: 1rem; }

.rating-badge {
    background: #ffb22c;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-weight: 700;
    height: fit-content;
}

.card-body { margin-bottom: 1.5rem; }

.info-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.text-main { color: #d1d5db; font-size: 0.95rem; }
.text-sub { color: #6b7280; font-size: 0.85rem; margin-top: 0.2rem; }

/* BOTÃO CORRIGIDO */
.btn-unidade {
    display: block;
    width: 100%;
    background: #ffb22c;
    color: #000;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-unidade:hover { background: #e6a028; }




/* 
.link-button-unidades {
    background: #4A4A4A !important;
    color: #ffb22c !important;
    border: 1px solid #2A2A2A !important; 
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 

*/
/* 
.link-button-unidades:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
*/

/* Responsividade Unidades */
@media (max-width: 1024px) {
    .grid-unidades { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-unidades { grid-template-columns: 1fr; }
}

/* FORÇAR 3 COLUNAS LADO A LADO NO DESKTOP */
.grid-unidades {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 colunas */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-unidade {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

/* RESPONSIVIDADE: EMPILHAR NO CELULAR */
@media (max-width: 900px) {
    .grid-unidades {
        grid-template-columns: 1fr !important; /* 1 coluna no mobile */
    }
}

/* CONTAINER DA GALERIA */
.galeria-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas no PC */
    gap: 24px;
    max-width: 900px; /* Reduzi o container para as fotos não espalharem muito */
    margin: 40px auto;
    padding: 0 20px;
    justify-items: center; /* Centraliza os cards nas colunas */
}

/* O CARD DA FOTO (Ajustado para Vertical/Portrait) */
.foto-card {
    width: 100%;
    max-width: 260px; /* Trava a largura para não ficar gigante no Desktop */
    height: 400px;    /* Aumentei a altura para valorizar fotos verticais */
    border: 1px solid #e5e7eb !important; 
    border-radius: 0.75rem;
    overflow: hidden; 
    transition: transform 0.357s ease, box-shadow 0.436s ease;
    background: #000;
}

/* Efeito Hover original mantido */
.foto-card:hover {
    transform: scale(0.97) !important;
    box-shadow: 0 5px 12.5px rgba(0,0,0,0.4);
}

/* A IMAGEM (Preenchimento inteligente) */
.foto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta as bordas da foto vertical para encaixar sem sobrar espaço */
    display: block;
}

/* AJUSTES PARA MOBILE (Mantendo o que você gostou) */
@media (max-width: 768px) {
    .galeria-container {
        grid-template-columns: 1fr; /* Volta para uma por linha */
        max-width: 100%;
    }
    .foto-card {
        max-width: 100%; /* No celular ele pode ocupar a largura da tela */
        height: 450px;   /* Altura boa para ver bem no celular */
    }
}
