/* Definição das cores principais do tema */
:root {
    --bossanova: #54346b;
    --gold-sand: #e2c388;
    --snuff: #e7ddec;
    --sandrift: #b18f87;
    --opium: #917175;
    --mamba: #95809f;
    --rum: #7c6c8a;
}

/* Estilos básicos e reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--snuff);
    color: var(--bossanova);
}

/* Container comum */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cabeçalho e navegação */
header {
    background-color: var(--bossanova);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 90px;
    border: 3px solid white;
    padding: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--gold-sand);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--snuff);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold-sand);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-sand);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Banner comum */
.page-banner {
    position: relative;
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&h=600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
}

.page-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gold-sand);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs > span {
    margin: 0 0.5rem;
}

/* Botões comuns */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.secondary-btn {
    background-color: var(--gold-sand);
    color: var(--bossanova);
}

.outline-btn {
    background-color: transparent;
    color: var(--bossanova);
    border: 2px solid var(--bossanova);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* Estilos de seção comuns */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--bossanova);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.divider {
    height: 4px;
    width: 80px;
    background-color: var(--gold-sand);
    margin: 0 auto 1.5rem;
}

.divider.center {
    margin: 0 auto 1.5rem;
}

/* Call to Action comum */
.cta-section {
    background-color: var(--bossanova);
    color: white;
    padding: 4rem 0;
    margin-top: 3rem;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer comum */
footer {
    background-color: var(--bossanova);
    color: white;
    padding: 4rem 0 0;
    width: 100%;
    margin-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    color: var(--gold-sand);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold-sand);
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gold-sand);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--gold-sand);
    color: var(--bossanova);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-sand);
    transform: translateX(5px);
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.8rem;
    color: var(--gold-sand);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* Media Queries para responsividade */
@media (max-width: 992px) {
    .experience-content {
        flex-direction: column;
    }
    
    .carousel-content h1 {
        font-size: 2.2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .page-banner {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 200px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
}

/* Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav .nav-link:hover {
    color: var(--gold-sand, #e7c873);
}

.header-nav .nav-link.active {
    color: #fff;
    position: relative;
}

.header-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--gold-sand, #e7c873);
    border-radius: 2px;
}

/* Fade-in animation on scroll */
.fade-in-element {
    opacity: 1;
    transform: none;
}

.fade-in-element.visible {
    opacity: 1;
    transform: none;
}

/* Add staggered effect for child elements */
.fade-in-element.visible > *:not(.fade-in-element) {
    opacity: 1;
    transform: none;
}

/* Remove all animation delays */
.fade-in-element.visible > *:nth-child(1):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(2):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(3):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(4):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(5):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(6):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(7):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(8):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(9):not(.fade-in-element) { animation-delay: 0s; }
.fade-in-element.visible > *:nth-child(10):not(.fade-in-element) { animation-delay: 0s; }

/* --- MOBILE MENU FINAL STYLE: Project colors --- */
@media (max-width: 768px) {
    .main-nav .mobile-menu-btn {
        display: block;
        color: var(--gold-sand);
        background: none;
        border: none;
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bossanova);
        border: none;
        flex-direction: column;
        padding: 1.5rem 1rem 1rem 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 8px 24px rgba(84, 52, 107, 0.12);
        z-index: 9999;
        border-radius: 0 0 18px 18px;
        animation: slideDownMenu 0.25s ease;
    }
    .main-nav ul.active {
        display: flex;
    }
    .main-nav ul li a {
        color: var(--gold-sand);
        font-size: 1.3rem;
        font-weight: 600;
        padding: 0.7rem 0.5rem;
        border-radius: 8px;
        transition: background 0.2s, color 0.2s;
        display: block;
    }
    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background: var(--snuff);
        color: var(--bossanova);
    }
    .section-title {
        font-size: 1.8rem;
    }
    .page-banner h1 {
        font-size: 2rem;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}

@keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}