@charset "UTF-8";

/* ===================== RESET ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== VARIÁVEIS ===================== */
:root {
    --cor01: #2E2E2E;
    --cor02: #FFFFFF;
    --cor03: #F2F2B4;
    --cor04: #D5B057;
    --cor05: #FFDE54;

    --font-title: 'Poppins', sans-serif;
    --font-text: 'Arial', sans-serif;
}

/* ===================== BASE ===================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    background-color: var(--cor01);
    color: var(--cor02);
}

h1, h2, h3 {
    font-family: var(--font-title);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================== HEADER ===================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5em;
    color: var(--cor03);
}

/* ===================== NAVEGAÇÃO ===================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: white;
    position: relative;
    transition: 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--cor03);
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--cor03);
}

.nav a:hover::after {
    width: 100%;
}

/* ===================== BOTÕES ===================== */
.btn {
    padding: 10px 20px;
    background: var(--cor03);
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: var(--cor04);
}

/* ===================== HERO ===================== */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../img/hero-barbearia.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-text {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ===================== SOBRE ===================== */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.about-text p {
    line-height: 1.6;
    color: #ccc;
}

.about-location {
    flex: 1;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
}

.about-location h3 {
    margin-bottom: 10px;
    color: var(--cor03);
}

/* ===================== MAPA ===================== */
.map {
    margin-top: 15px;
    width: 100%;
    height: 200px;
    background: #333;
    border-radius: 8px;
}

.map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 8px;
    filter: grayscale(100%) contrast(1.1);
}

/* ===================== SERVIÇOS ===================== */
.services {
    background: var(--cor01);
}

.services-grid {
    padding: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* CARD */
.service-card {
    flex: 1;
    min-width: 250px;
    background: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card:hover .card-overlay {
    transform: translateY(-5px);
}

.service-card:hover .card-btn {
    opacity: 1;
    transform: translateY(0);
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 10px;
}

/* IMAGEM DO CARD */
.card-imagem {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 220px;
}

.card-imagem::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.8)
    );
}

.card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}

/* OVERLAY */
.card-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    transition: 0.3s;
}

.card-overlay p {
    font-size: 0.9rem;
    color: #ddd;
}

.card-overlay .price {
    color: var(--cor05);
    font-weight: bold;
}

/* BOTÃO DO CARD */
.card-btn {
    display: inline-block;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    background-color: var(--cor05);
    color: black;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 5px;
}

/* PREÇO */
.price {
    color: var(--cor03);
    font-size: 1.3em;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* ===================== CONTATO ===================== */
.contact {
    padding: 50px;
    background: #1a1a1a;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info,
.contact-hours {
    flex: 1;
}

.contact .btn {
    margin-top: 15px;
    display: inline-block;
}

.contact p a {
    text-decoration: underline;
    color: white;
}

.contact-hours p:last-child {
    margin-bottom: 0;
}

/* TELEFONE */
.telefone {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================== WHATSAPP FIXO ===================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    display: block;
}

/* ===================== FOOTER ===================== */
footer {
    text-align: center;
    padding: 20px 0;
    background: #111111;
    color: var(--cor02);
}

/* ===================== ANIMAÇÕES ===================== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-list li {
        flex: 1 1 auto;
        text-align: center;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }
}

/* MOBILE: mostrar botão sempre (sem depender de hover) */
@media (hover: none) and (pointer: coarse) {

  .card-btn {
    opacity: 1;
    transform: translateY(0);
  }

}