/* --- FONT & VARIABLE DEFINITIONS --- */
:root {
    /* Palette */
    --c-primary: #B8A8DD;      /* Cozy Lilac */
    --c-accent: #9966CC;       /* Active Amethyst */
    --c-dark: #3f2041;         /* Deep Purple */
    --c-warm-accent: #D4AFB9;  /* Dusty Rose */
    --c-bg: #F9F7F9;           /* Snow White */
    --c-text: #4A4A4A;         /* Charcoal Gray */
    --c-border: #EAEAEA;       /* Soft Gray */
    --c-white: #FFFFFF;

    /* Typography */
    --font-heading: 'inter', sans-serif;
    --font-body: 'Lexend', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* --- BASE & RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1050; /* Aumentado para ficar acima do menu antigo */
    background-color: rgba(249, 247, 249, 0.8);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, height 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    height: 70px;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--c-dark);
    text-decoration: none;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--c-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 40px; /* Altura mínima consistente */
}

/* Estilos específicos para o botão no menu */
.nav-link.btn {
    padding: 0.5rem 1.5rem; /* Padding vertical igual aos outros links */
    border-radius: 25px;
    margin: 0; /* Remove qualquer margem extra */
    min-height: 40px; /* Mesma altura dos outros itens */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link.btn.btn-primary {
    background-color: var(--c-accent);
    color: var(--c-white);
    border: 2px solid var(--c-accent);
}

.nav-link.btn.btn-primary:hover {
    background-color: #8a59b9;
    border-color: #8a59b9;
    transform: translateY(-1px); /* Reduzido para não afetar o alinhamento */
    box-shadow: 0 2px 8px rgba(153, 102, 204, 0.3);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--c-dark);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    color: var(--c-dark);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #8a59b9; /* Darker accent */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(153, 102, 204, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--c-dark);
    border-color: var(--c-border);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn i {
    margin-left: 0.5rem;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--c-bg);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--c-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-description {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    /* Removido align-items: center e text-align: center para outros dispositivos */
}

.animated-words {
    display: block;
    position: relative;
    height: 1.5em;
    margin-top: 0.5rem;
    margin-left: 0;
    /* Removido text-align: center e width: 100% para outros dispositivos */
}

.animated-words .word {
    position: absolute;
    opacity: 0;
    animation: slide-words 8s infinite;
    color: var(--c-accent);
    font-weight: 600;
}

.animated-words .word:nth-child(2) { animation-delay: 2s; }
.animated-words .word:nth-child(3) { animation-delay: 4s; }
.animated-words .word:nth-child(4) { animation-delay: 6s; }

@keyframes slide-words {
    0%, 25% { opacity: 0; transform: translateY(100%); }
    5%, 20% { opacity: 1; transform: translateY(0); }
    25.01% { opacity: 0; transform: translateY(-100%); }
}


.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: 800px; /* Aumentado para o triplo da altura */
    border-radius: 1rem;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image-bg {
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: var(--c-primary);
    border-radius: 1rem;
    transform: rotate(-8deg);
    z-index: 1;
    opacity: 0.5;
}

/* --- GENERAL SECTION STYLES --- */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--c-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- ABOUT SECTION --- */
#about {
    background-color: white;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}
.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.about-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-content .btn-secondary {
    margin-top: 2rem; /* Maior espaçamento do texto */
    background-color: var(--c-primary); /* Cor de fundo que combina com o site */
    color: white;
    border-color: var(--c-primary);
}

.about-content .btn-secondary:hover {
    background-color: var(--c-accent);
    border-color: var(--c-accent);
    color: white;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--c-border);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(184, 168, 221, 0.2);
    border-color: var(--c-primary);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- CONTACT SECTION REDESIGN --- */
#contact {
    background-color: var(--c-bg);
    color: var(--c-text);
}

#contact .section-title h2 {
    color: var(--c-dark);
}

#contact .section-title p {
    color: var(--c-text);
}

.contact-item {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--c-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(184, 168, 221, 0.2);
    border-color: var(--c-primary);
}

.contact-icon {
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 3rem;
    color: var(--c-accent);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: var(--c-primary);
    transform: scale(1.1);
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--c-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--c-text);
}

.contact-item a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--c-dark);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .contact-item {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-icon i {
        font-size: 2.5rem;
    }
    
    .contact-item h4 {
        font-size: 1.2rem;
    }
}
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    background-color: rgba(255,255,255,0.2);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background-color: rgba(255,255,255,0.3);
    border-color: white;
}
.contact-form .btn-primary {
    background-color: white;
    color: var(--c-dark);
    align-self: center;
}
.contact-form .btn-primary:hover {
    background-color: var(--c-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-wrapper {
        order: -1;
        margin-bottom: 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .about-content .section-title {
        text-align: center;
    }
    
    /* Fazer a imagem da seção ABOUT aparecer abaixo do texto em mobile */
    .about-image {
        order: 2; /* Imagem por último */
        margin-top: 2rem;
    }
    
    .about-content {
        order: 1; /* Conteúdo primeiro */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1051;
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-menu-toggle {
        display: block;
        z-index: 1052;
    }
    .nav-link.btn {
        padding: 0.8rem 1.8rem;
    }
}

/* Media query específica para dispositivos móveis até 380px */
@media (max-width: 380px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image-wrapper {
        order: 2;
        margin-top: 2rem;
        margin-bottom: 0;
    }
    
    .hero-image {
        max-width: 250px;
        height: 300px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        align-items: center;
        text-align: center;
    }
    
    .animated-words {
        text-align: center;
        width: 100%;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .animated-words .word {
        left: 50%;
        transform: translateX(-50%) translateY(100%);
    }
    
    .animated-words .word:nth-child(2) { animation-delay: 2s; }
    .animated-words .word:nth-child(3) { animation-delay: 4s; }
    .animated-words .word:nth-child(4) { animation-delay: 6s; }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Ajustes específicos para a seção ABOUT em mobile muito pequeno */
    .about-content .btn-secondary {
        margin-top: 2.5rem; /* Ainda mais espaçamento em telas muito pequenas */
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Remover menu mobile */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .navbar {
        justify-content: center;
    }
}

/* Ajustar a animação para mobile também */
@media (max-width: 380px) {
    @keyframes slide-words {
        0%, 25% { opacity: 0; transform: translateX(-50%) translateY(100%); }
        5%, 20% { opacity: 1; transform: translateX(-50%) translateY(0); }
        25.01% { opacity: 0; transform: translateX(-50%) translateY(-100%); }
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1051;
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-menu-toggle {
        display: block;
        z-index: 1052;
    }
    .nav-link.btn {
        padding: 0.8rem 1.8rem;
    }
}

/* Media query para tablets e telas médias */
@media (min-width: 381px) and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1052;
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-dark) 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-widget h5 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--c-accent);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--c-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--c-accent);
    padding-left: 5px;
}

.footer-contact .contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact .contact-info i {
    width: 20px;
    margin-right: 10px;
    color: var(--c-accent);
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 40px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-credits {
    font-size: 0.85rem !important;
}

.footer-credits i {
    color: var(--c-accent);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
}
