/* =====================================
   TWELVE BARBERSHOP
   STYLE.CSS - PARTE 1
===================================== */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f5f5;
    color:#222;
}

/* HEADER */

header{
    background:#111;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:3px solid #C1121F;
}

.logo h2{
    font-family:'Cinzel',serif;
    font-size:38px;
    color:#C1121F;
    letter-spacing:2px;
    transition:.3s;
}

.logo h2:hover{
    color:#fff;
}

/* MENU */

nav{
    display:flex;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:600;
    position:relative;
    transition:.3s;
}

nav a:hover{
    color:#C1121F;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#C1121F;
    transition:.3s;
}

nav a:hover::after{
    width:100%;
}

/* HERO */

.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
    min-height:90vh;
    padding:80px 8%;
    background:linear-gradient(135deg,#111,#1b1b1b,#C1121F);
    color:white;
}

.hero-text{
    flex:1;
}

.hero-text h1{
    font-family:'Cinzel',serif;
    font-size:68px;
    line-height:1.1;
    margin-bottom:25px;
}

.hero-text p{
    font-size:19px;
    line-height:1.8;
    margin-bottom:35px;
    color:#f0f0f0;
}

.hero-image{
    flex:1;
}

.hero-image img{
    width:100%;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.4);
    transition:.4s;
}

.hero-image img:hover{
    transform:scale(1.03);
}

/* BOTÕES */

.btn{
    display:inline-block;
    background:#C1121F;
    color:white;
    text-decoration:none;
    padding:15px 35px;
    border-radius:50px;
    font-weight:bold;
    transition:.3s;
}

.btn:hover{
    background:white;
    color:#C1121F;
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(193,18,31,.4);
}

/* TÍTULOS DAS SECÇÕES */

section{
    padding:90px 8%;
}

section h2{
    font-family:'Cinzel',serif;
    text-align:center;
    color:#C1121F;
    font-size:46px;
    margin-bottom:40px;
    letter-spacing:2px;
}

/* ANIMAÇÕES */

body{
    animation:fadePage .8s ease;
}

.hero-text{
    animation:slideLeft 1s ease;
}

.hero-image{
    animation:slideRight 1s ease;
}

@keyframes fadePage{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

@keyframes slideLeft{

    from{
        opacity:0;
        transform:translateX(-70px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes slideRight{

    from{
        opacity:0;
        transform:translateX(70px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}


/* SOBRE */

.sobre{
    background:#ffffff;
}

.sobre p{
    max-width:900px;
    margin:auto;
    text-align:center;
    line-height:1.9;
    font-size:18px;
    color:#555;
}

/* SERVIÇOS */

.servicos{
    background:#f5f5f5;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{

    background:#fff;

    padding:35px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    border-top:5px solid #C1121F;

    transition:.4s;

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 18px 35px rgba(0,0,0,.2);

}

.card h3{

    font-family:'Cinzel',serif;

    color:#111;

    margin-bottom:15px;

    font-size:26px;

}

.card p{

    color:#666;

    margin-bottom:20px;

    line-height:1.7;

}

.card span{

    color:#C1121F;

    font-size:30px;

    font-weight:bold;

}

/* GALERIA */

.galeria{
    background:#ffffff;
}

.galeria-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

    max-width:1100px;

    margin:auto;

}

.galeria-grid img{

    width:100%;

    height:320px;

    object-fit:cover;

    object-position:center;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    transition:.4s;

    cursor:pointer;

}

.galeria-grid img:hover{

    transform:scale(1.05);

    box-shadow:0 18px 35px rgba(0,0,0,.25);

}

/* Primeira foto */

.primeira-foto{

    object-position:center 35%;

}

/* RESPONSIVO DA GALERIA */

@media(max-width:900px){

    .galeria-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:600px){

    .galeria-grid img{

        height:250px;

    }

}


/* HORÁRIO */

.horario{
    background:#111;
    padding:90px 8%;
}

.horario h2{
    color:#C1121F;
}

.horario-box{
    max-width:800px;
    margin:auto;
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.dia{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 30px;
    border-bottom:1px solid #ddd;
    transition:.3s;
}

.dia:last-child{
    border-bottom:none;
}

.dia span:first-child{
    font-weight:600;
}

.dia span:last-child{
    color:#555;
}

.dia:hover{
    background:#C1121F;
    color:white;
}

.dia:hover span:last-child{
    color:white;
}

/* CONTACTOS */

.contacto{
    background:#f5f5f5;
}

.contactos-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.contacto-card{

    background:white;

    padding:35px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.1);

    border-top:5px solid #C1121F;

    transition:.4s;

}

.contacto-card:hover{

    transform:translateY(-10px);

    box-shadow:0 18px 35px rgba(0,0,0,.2);

}

.contacto-card h3{

    font-family:'Cinzel',serif;

    margin-bottom:15px;

    color:#111;

    font-size:24px;

}

.contacto-card p{

    line-height:1.7;

    margin-bottom:20px;

    color:#555;

}

/* FOOTER */

footer{

    background:#111;

    color:white;

    text-align:center;

    padding:60px 20px;

    border-top:4px solid #C1121F;

}

footer h3{

    font-family:'Cinzel',serif;

    color:#C1121F;

    font-size:30px;

    margin-bottom:15px;

}

footer p{

    margin:8px 0;

    color:#ddd;

}

/* RESPONSIVO */

@media(max-width:900px){

    header{
        flex-direction:column;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        flex-direction:column;
        text-align:center;
    }

    .hero-text h1{
        font-size:48px;
    }

    .dia{
        flex-direction:column;
        gap:8px;
        text-align:center;
    }

}

@media(max-width:600px){

    nav{
        flex-direction:column;
        gap:15px;
    }

    .hero-text h1{
        font-size:36px;
    }

    .hero-text p{
        font-size:17px;
    }

    section h2{
        font-size:34px;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .logo h2{
        font-size:30px;
    }

}