/* Estilos gerais - Otimizado e com acessibilidade melhorada */
:root {
    --primary-color: #b08968;
    --secondary-color: #f0eae3;
    --accent-color: #d4a373;
    --text-color: #333333;
    --light-color: #ffffff;
    --dark-color: #1a1a1a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

section {
    padding: 4rem 0;
}

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

a:hover {
    color: var(--accent-color);
}

/* Botões */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    color: var(--light-color);
    background-color: #d4a373 !important;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    color: var(--light-color);
    background-color: var(--primary-color) !important;
}

/* Cabeçalho */
header {
    background-color: var(--light-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 90px;
    width: auto;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    max-height: 140px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1.8rem;
}

.subtitle {
    color: #333333;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Navegação */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

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

nav ul li a:hover::after {
    width: 100%;
}

/* Seção Hero */
.hero {
    background-color: var(--secondary-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 2.5rem;
}

.hero-text .subtitle {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hero-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-height: 500px;
    object-fit: cover;
}

/* Seções de conteúdo */
.about, .services {
    background-color: var(--light-color);
}

.formation, .contact {
    background-color: var(--secondary-color);
}

.services, .formation, .contact {
    text-align: center;
}

.about h2, .formation h2, .services h2, .contact h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about h2, .formation h2, .services h2, .contact h2 {
    text-align: center;
}

/* Layout flexível comum */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1.5;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img, .hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-image img {
    max-height: 400px;
}

/* Cards e grids */
.formation-items, .services-grid, .contact-info {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.formation-items, .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.contact-info {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

/* Estilos de cards */
.formation-item, .service-card, .contact-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

.formation-item, .contact-card {
    background-color: var(--light-color);
}

.service-card {
    background-color: var(--secondary-color);
}

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

.service-card:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.formation-item i, .service-card i, .contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card:hover i, .service-card:hover h3 {
    color: var(--light-color);
}

.formation-item h3, .contact-card h3 {
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Mapa */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Rodapé */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: var(--light-color);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-decoration: underline;
}

.footer-nav ul li a:hover {
    opacity: 1;
}

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

.footer-social a {
    color: var(--light-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsividade */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .hero-content, .about-content {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .formation-items, .services-grid, .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
}

/* Estilos para o botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float i {
    margin: 0;
}

/* Media query para ajustar o tamanho do botão em telas menores */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}
