/*============== RESET ======================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/*============== VARIABLES =====================*/
:root {
    --header-height: 4.5rem;
    /* COLORS */
    --hue: 220;
    /* Um tom de azul */
    --base-color: hsl(220, 60%, 30%);
    /* Azul escuro, elegante */
    --base-color-second: white;
    /* Branco */
    --base-color-alt: hsl(220, 40%, 20%);
    /* Azul bem escuro */
    --title-color: hsl(0, 0%, 90%);
    /* Branco para os títulos */
    --text-color: hsl(0, 0%, 80%);
    /* Cinza claro para o texto */
    --text-color-light: hsl(0, 0%, 98%);
    /* Quase branco */
    --body-color: hsl(220, 20%, 10%);
    /* Azul muito escuro, quase preto */
    /* FONTS */
    --title-font-size: 2rem;
    --subtitle-font-size: 1rem;
    --title-font: 'Poppins', sans-serif;
    --body-font: 'DM Sans', sans-serif;
}

/*============== BASE ======================*/
html {
    scroll-behavior: smooth;
}

body {
    font: 400 1rem var(--body-font);
    color: var(--text-color);
    background: var(--body-color);
    -webkit-font-smoothing: antialiased;
}

.title {
    font: 700 var(--title-font-size) var(--title-font);
    color: var(--title-color);
    -webkit-font-smoothing: auto;
}

.button {
    background-color: var(--base-color);
    color: var(--text-color-light);
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    border-radius: 0.25rem;
    font: 500 1rem var(--body-font);
    transition: background 0.3s;
    max-width: 130px;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.button:hover {
    background: var(--base-color-alt);
}

.divider-1 {
    height: 1px;
    background: linear-gradient(270deg,
            hsla(var(--hue), 36%, 57%, 1) 0%,
            hsla(var(--hue), 65%, 88%, 0.34) 100%);
}

.divider-2 {
    height: 1px;
    background: linear-gradient(270deg,
            hsla(var(--hue), 65%, 88%, 0.34),
            hsla(var(--hue), 36%, 57%, 1));
}

/*============== LAYOUT ======================*/
.container {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: calc(1.4rem + var(--header-height)) 0;
}

.section .title {
    margin-bottom: 1rem;
}

.section .subtitle {
    font-size: var(--subtitle-font-size);
}

.section header {
    margin-bottom: 4rem;
}

.section header strong {
    color: var(--base-color);
}

#header {
    border-bottom: 1px solid #e4e4e4;
    margin-bottom: 2rem;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--body-color);
    width: 100%;
}

#header.scroll {
    color: var(--base-color);
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
}

main {
    margin-top: calc(var(--header-height));
}

/*============== LOGO ========================*/
.imgdalogo {
    width:10%;margin-right:5px;
}

.logo {
    font: 700 1.3rem var(--title-font);
    color: var(--title-color);
    display:flex;
}

.logo i {
    font-size: 1.7rem;
    color: var(--base-color);
}

.logo span {
    color: var(--base-color);
}

.logo-alt i {
    font-size: 1.7rem;
    color: var(--text-color-light);
}

.logo-alt span {
    color: var(--text-color-light);
}

/*============= NAVIGATION ======================*/
nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav ul li {
    text-align: center;
}

nav ul li a {
    transition: color 0.2s;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--base-color);
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--base-color);
    position: absolute;
    left: 0;
    bottom: -1.5rem;
    transition: width 0.2s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav .menu {
    opacity: 0;
    visibility: hidden;
    top: -20rem;
    transition: 0.2s;
}

nav .menu ul {
    display: none;
}

/*===== MOSTRAR MENU =====*/
nav.show .menu {
    opacity: 1;
    visibility: visible;
    background: var(--body-color);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    place-content: center;
}

nav.show .menu ul {
    display: grid;
}

nav.show ul.grid {
    gap: 4rem;
}

/*====== TOGGLE MENU =======*/
.toggle {
    color: var(--base-color);
    font-size: 1.5rem;
    cursor: pointer;
}

nav .icon-close {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -1.5rem;
    right: 1.5rem;
    transition: 0.2s;
}

nav.show div.icon-close {
    visibility: visible;
    opacity: 1;
    top: 1.5rem;
}

/*============== HOME ======================*/
#home {
    overflow: hidden;
}

#home .container {
    margin: 0;
}

#home .image {
    position: relative;
}

#home .image::before {
    content: '';
    height: 100%;
    width: 100%;
    background: var(--base-color-second);
    position: absolute;
    top: -16.8%;
    left: 16.8%;
    z-index: 0;
}

#home .image img {
    position: relative;
    right: 2.93rem;
}

#home .image img,
#home .image::before {
    border-radius: 0.25rem;
}

#home .text {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    text-align: center;
}

#home .text h1 {
    margin-bottom: 1rem;
}

#home .text p {
    margin-bottom: 2rem;
}

/*============== ABOUT ======================*/
#about {
    background: var(--body-color);
    /* Fundo escuro, consistente com o restante do layout */
}

#about .container {
    margin: 0;
}

#about .image {
    position: relative;
}

#about .image::before {
    content: '';
    height: 100%;
    width: 100%;
    background-color: var(--base-color);
    /* Azul escuro para o fundo */
    position: absolute;
    top: -8.3%;
    left: -33%;
    z-index: 0;
}

#about .image img {
    position: relative;
}

#about .image img,
#about .image::before {
    border-radius: 0.25rem;
}

#about .text {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    color: var(--text-color-light);
    /* Texto claro para contraste */
}

/*============== SERVICES ======================*/
.cards.grid {
    gap: 1rem;
}

.card {
    padding: 3.625rem 2rem;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 0.25rem solid var(--base-color);
    border-radius: 0.25rem 0.25rem 0 0;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    transition: 0.5s;
}

.card i {
    display: block;
    margin-bottom: 1rem;
    font-size: 5rem;
    color: var(--base-color);
}

.card .icon-nail-clipper {
    margin-right: 2rem;
}

.card .icon-eyebrow {
    margin-left: 1rem;
}

.card .title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/*============== TESTIMONIALS ======================*/
#testimonials {
    background: var(--body-color);
    /* Fundo escuro */
    position: relative;
    overflow: hidden;
}

#testimonials .container {
    margin-left: 0;
    margin-right: 0;
}

#testimonials header {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 0;
}

#testimonials blockquote {
    padding: 2rem;
    background-color: var(--base-color-alt);
    /* Fundo do blockquote com azul escuro */
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.6);
    /* Sombra escura */
    border-radius: 0.25rem;
}

#testimonials blockquote p {
    position: relative;
    text-indent: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--title-color);
    /* Texto em branco */
}

#testimonials blockquote p span {
    font: 700 2.5rem serif;
    position: absolute;
    top: -0.5rem;
    left: -1.6rem;
    color: var(--base-color-second);
    /* Azul mais claro para destaque */
}

#testimonials cite {
    display: flex;
    align-items: center;
    font-style: normal;
}

#testimonials cite img {
    width: 2rem;
    height: 2rem;
    clip-path: circle();
    margin-right: 0.5rem;
}

/* ====== SWIPER =========*/
.swiper-slide {
    height: auto;
    padding: 2.5rem 1rem;
}

.swiper-pagination {
    margin-bottom: 2.5rem;
}

.swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
}

.swiper-pagination-bullet-active {
    background: var(--base-color);
}

/* =========== CONTACT =============================*/
#contact .grid {
    gap: 3rem;
}

#contact .text p {
    margin-bottom: 2rem;
}

#contact .button i,
#contact ul li i {
    font-size: 1.5rem;
    margin-right: 0.625rem;
}

#contact ul.grid {
    gap: 2rem;
}

#contact ul li {
    display: flex;
    align-items: center;
}

#contact ul li i {
    color: var(--base-color);
}

/*=========== FOOTER ==============================*/
footer {
    background-color: var(--base-color);
}

footer.section {
    padding: 4rem 0;
}

footer .logo {
    display: inline-block;
    margin-bottom: 2rem;
}

footer .brand p {
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
}

footer i {
    color: var(--text-color-light);
    font-size: 1.5rem;
}

footer .social-networks a {
    margin-right: 2rem;
    transition: 0.3s;
    display: inline-block;
}

footer .social-networks a:hover {
    transform: translateY(-10px);
}

/*========== BACK TO TOP ==============================*/
.back-to-top {
    background: var(--base-color);
    color: var(--text-color-light);
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem;
    clip-path: circle();
    font-size: 1.2rem;
    line-height: 0;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.back-to-top.show {
    visibility: visible;
    opacity: 1;
}

/*========== MEDIA QUERIES ============================*/
@media (max-width: 720px) {
    .imgdalogo {
        width:20%;margin-right:5px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 10.5rem 0;
    }

    .section header,
    #testimonials header {
        max-width: 25rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .button {
        height: 3.125rem;
    }

    /*=== NAVIGATION ===*/
    nav .menu {
        opacity: 1;
        visibility: visible;
        top: 0;
    }

    nav .menu ul {
        display: flex;
        gap: 2rem;
    }

    nav .menu ul li a.title {
        font: 400 1rem var(--body-font);
        -webkit-font-smoothing: antialiased;
    }

    nav .menu ul li a.title.active {
        font-weight: bold;
        -webkit-font-smoothing: auto;
    }

    nav .icon-menu {
        display: none;
    }

    /*=== LAYOUT ===*/
    main {
        margin-top: calc(var(--header-height) - 0.5rem);
    }

    /*=== HOME ===*/
    #home .container {
        grid-auto-flow: column;
        justify-content: space-between;
        margin: 0 auto;
    }

    #home .image {
        order: 1;
    }

    #home .image::before {
        content: '';
        height: 237.2px;
        width: 100%;
        background: var(--base-color-second);
        position: absolute;
        top: -15.8%;
        left: 10.8%;
        z-index: 0;
    }

    #home .text {
        order: 0;
        max-width: 24rem;
        text-align: left;
        margin-right: 10rem;
    }

    /*=== ABOUT ===*/
    #about .container {
        margin: 0 auto;
        grid-auto-flow: column;
    }

    #about .image::before {
        content: '';
        height: 100%;
        width: 100%;
        background-color: var(--base-color-second);
        position: absolute;
        top: -12.3%;
        left: -20%;
        z-index: 0;
    }

    /*=== SERVICES ===*/
    .cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .card {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /*=== TESTIMONIALS ===*/
    #testimonials .container {
        margin-left: auto;
        margin-right: auto;
    }

    #testimonials .title {
        margin-bottom: 3rem;
    }

    /*=== CONTACT ===*/
    #contact .container {
        grid-auto-flow: column;
        align-items: center;
    }

    #contact .text {
        max-width: 25rem;
    }

    /*=== FOOTER ===*/
    footer.section {
        padding: 4rem 0;
    }

    footer .logo i {
        font-size: 2.3rem;
    }

    footer .logo {
        font-size: 2rem;
    }

    footer .container {
        grid-auto-flow: column;
        align-items: center;
        justify-content: space-between;
    }
}

/* Estilização do container do formulário */
.form-container {
    display: flex;
    justify-content: center;
    /* Centralizar o formulário */
    width: 100%;
}

.form-agendamento {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    /* Aumentando a largura máxima para acomodar inline */
}

.form-agendamento form {
    display: flex;
    flex-wrap: wrap;
    /* Permitir que os itens se movam para a próxima linha */
    gap: 15px;
    /* Espaçamento entre os elementos */
}

.form-agendamento label {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    flex-basis: 100%;
    /* Cada label ocupará toda a largura */
    margin-bottom: 5px;
    /* Espaçamento entre label e campo */
}

.form-agendamento input[type="text"],
.form-agendamento input[type="date"],
.form-agendamento input[type="time"],
.form-agendamento select {
    flex: 1;
    /* Permitir que os campos se expandam */
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-agendamento input[type="text"]:focus,
.form-agendamento input[type="date"]:focus,
.form-agendamento input[type="time"]:focus,
.form-agendamento select:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

.form-agendamento input[type="submit"] {
    padding: 12px;
    background-color: var(--base-color);
    color: #ffffff;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-agendamento input[type="submit"]:hover {
    background-color: #0056b3;
}

.form-agendamento form {
    flex-direction: column;
    /* Colocar em coluna em telas menores */
}

#foto-barbeiro-container {
	margin-top: 10px;
}

#foto-barbeiro {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover; /* Mantém a proporção da imagem e corta o excesso */
	border: 2px solid hsl(220, 60%, 30%); /* Opcional: borda ao redor da imagem */
}