/* Arquivo CSS para Manas Makeup */

:root {
  --primary-color: #5a3e55; /* rgb(90, 62, 85) */
  --dark-bg: #130911; /* rgb(19, 9, 17) */
  --light-bg: #fdfaf8;
  --card-bg: #ffffff;
  --text-color: #333;
  --text-light: #666;
  --white-color: #fff;
  --accent-color: #887064; /* rgb(136, 112, 100) */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --radius: 12px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
}

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.divider {
    height: 2px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 0 auto 50px auto;
    border: none;
}

.bg-light {
    background-color: #f9f6f4;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn--primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn--secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 250, 248, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: top 0.3s;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 30px;
}

.header__logo-img {
    max-height: 60px;
}

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

.header__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.header__item {
    margin: 0;
}

.header__link {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    position: relative;
    padding: 5px 12px;
    display: block;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.header__link:hover::after {
    width: 100%;
}

.header__toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
}

.hero__content {
    animation: fadeIn 1s ease-in-out;
}

.hero__title {
    font-family: var(--font-secondary);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

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

.service-card__image-container {
    height: 400px;
}

.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white-color);
}

.service-card__title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-card__name {
    font-weight: 600;
    margin: 0;
}

.testimonial-card__rating {
    color: #ffc107;
}

.testimonial-card__text {
    font-style: italic;
    color: var(--text-light);
}

/* Portfolio Section */
.portfolio-info {
    text-align: center;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 50px;
    box-shadow: var(--shadow);
}

.portfolio-info a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
}

.portfolio-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.1);
}

.portfolio-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card__content {
    transform: translateY(0);
}

.portfolio-card__stats {
    margin-bottom: 15px;
}

.portfolio-card__stats span {
    margin: 0 10px;
}

.portfolio-card__stats i {
    margin-right: 5px;
}

.portfolio-card .btn {
    margin-top: 20px;
}

/* About Us Section */
.about-us {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-us__content {
    flex: 1;
}

.about-us__content p {
    margin-bottom: 20px;
}

.about-us__image {
    flex: 1;
    max-width: 450px;
}

.about-us__image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    display: flex;
    gap: 50px;
}

.contact__info, .contact__map {
    flex: 1;
}

.contact__item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact__item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact__item a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.contact__item a:hover {
    color: var(--primary-color);
}

.contact__map iframe {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 350px;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding: 60px 0 20px 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.footer__title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer__about, .footer__links {
    flex: 1;
}

.footer__links ul {
    list-style: none;
    padding: 0;
}

.footer__links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--white-color);
}

.footer__copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #aaa;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
}

.fab:hover {
    transform: scale(1.1);
}

nav {
    background-color: var(--dark-bg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Alterado de right para left */
    width: 100%; /* Ocupa a largura total */
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 1001;
    transition: left 0.4s ease-in-out; /* Alterado de right para left */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav.open {
    left: 0; /* Alterado de right para left */
}

.mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white-color);
    cursor: pointer;
    line-height: 1;
}

.mobile-nav__list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav__item {
    margin-bottom: 30px; /* Aumenta o espaçamento */
}

.mobile-nav__link {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1.8rem; /* Aumenta o tamanho da fonte */
    font-family: var(--font-secondary); /* Usa a fonte de destaque */
    transition: color 0.3s ease;
}

.mobile-nav__link:hover {
    color: var(--accent-color); /* Efeito hover */
}

/* Animação para o ícone do menu hamburguer */
.header__toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.header__toggle.open .header__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__toggle.open .header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.header__toggle.open .header__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Impede o scroll da página quando o menu está aberto */
.body-no-scroll {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .header__menu {
        display: none;
    }
    .header__toggle {
        display: block;
        z-index: 1002; /* Garante que o botão fique acima do overlay */
    }
    /* Ajusta a cor das barras quando o menu está aberto */
    .header__toggle.open .header__toggle-bar {
        background-color: var(--white-color);
    }
    .hero__title {
        font-size: 4rem;
    }
    .about-us, .contact {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .hero__title {
        font-size: 3rem;
    }
    .hero__subtitle {
        font-size: 1.2rem;
    }
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}

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

/* Animations */
.service-card, .testimonial-card, .portfolio-card, .about-us, .contact {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
