/* BARBEARIA MADERO - PROFESSIONAL STYLESHEET 2026
    Design: Premium Dark & Gold | Porto Velho, RO
    Status: FINAL COMPILATION (Full Integrated Version)
*/

:root {
    --gold: #d4af37;
    --gold-dark: #aa891d;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --bg-black: #050706;
    --bg-card: #0d1210;
    --text-gold: #e5c158;
    --text-light: #f1f1f1;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px; 
}

/* ANTI-PURPLE FIX */
a, a:visited, a:active, a:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 90px;
    background: rgba(5, 7, 6, 0.95); 
    backdrop-filter: blur(15px);
    z-index: 1000; 
    display: flex; 
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold) !important;
    animation: iconGlow 3s infinite ease-in-out;
}

.logo-madero {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold) !important;
    font-weight: 700;
    letter-spacing: 3px;
}

.logo-barbearia {
    font-size: 0.65rem;
    color: #fff !important;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 2px var(--gold)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 12px var(--gold-glow)); transform: scale(1.05); }
}

.nav-desktop a {
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-desktop a:hover, .nav-desktop a.active {
    color: var(--gold) !important;
}

/* --- SERVICES & CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px 25px;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-info h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn-book {
    display: inline-block;
    width: 100%;
    background: var(--gold) !important;
    color: #000 !important;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    transition: 0.3s;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-top: 15px;
}

.btn-book:hover {
    background: #fff !important;
    transform: scale(1.02);
}

/* --- MODAL DE AGENDAMENTO (SISTEMA DE CALENDÁRIO) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95);
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #0f1412; 
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 95%; 
    max-width: 450px; 
    padding: 30px 25px; 
    border-radius: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 10;
}

/* Calendário Horizontal e Setas */
.calendar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.nav-arrow {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}

.nav-arrow:hover { background: var(--gold); color: #000; }

.days-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 5px 0;
}

.days-container::-webkit-scrollbar { display: none; }

.day-item {
    min-width: 60px;
    height: 75px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.day-item span { font-size: 0.7rem; text-transform: uppercase; opacity: 0.6; }
.day-item strong { font-size: 1.2rem; }

.day-item.active { 
    background: var(--gold) !important; 
    color: #000 !important;
    border-color: var(--gold);
    box-shadow: 0 5px 15px var(--gold-glow);
}

/* Horários (Grid) */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.time-slot:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 40px 0;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    header { height: 75px; }
    .nav-desktop { display: none; }
    .logo-madero { font-size: 1.4rem; }
    .services-grid { grid-template-columns: 1fr; }
    .time-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Animações */
.fade-in { animation: fadeInUp 0.5s ease forwards; }

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}
