/* Base Styles */
:root {
    --primary-color: #0a3d62;
    --secondary-color: #d4af37;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-text {
    text-align: center;
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.logo-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-top: 0;
}

.logo-brasao {
    width: 120px;
    height: auto;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    padding: 5px;
    background-color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}



.divider {
    height: 3px;
    background-color: var(--secondary-color);
    width: 50%;
    margin: 15px auto;
}

/* Main Content */
main {
    padding: 50px 0;
}

/* Seções de Convite e Informações */
.invitation, .waste-management-info, .waste-composition, .landfill-project {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.invitation-heading, .section-title {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.invitation-heading::after, .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

.invitation-intro, .section-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-color);
    line-height: 1.6;
}

.invitation-heading, .invitation-intro, .invitation-honor, .main-invitation-text {
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.invitation-heading {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.invitation-intro {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-style: italic;
}

.invitation-honor {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 20px;
}

.invitation-line {
    height: 1px;
    background-color: var(--text-color);
    width: 60%;
    margin: 25px auto;
    opacity: 0.5;
}

.main-invitation-text {
    font-size: 1.3rem;
    margin: 25px auto 40px;
    max-width: 800px;
    line-height: 1.8;
    font-style: italic;
    color: var(--primary-color);
    padding: 0 20px;
}

/* Event Details */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.detail {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detail i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 20px;
}

.detail h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.detail p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Address Section */
.address-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

/* Confirmation Section */
.confirmation {
    margin: 40px 0;
    text-align: center;
}

.confirmation h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact {
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 10px 0;
    border-radius: 0;
    margin-bottom: 5px;
}

.contact i {
    font-size: 1.5rem;
    color: white;
    margin-right: 15px;
}

.contact a {
    color: var(--secondary-color);
    text-decoration: underline;
    margin: 0 5px;
}

/* Zoom Section */
.zoom-section {
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #d1e7ff;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.zoom-section.active {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
    border: 1px solid rgba(0, 123, 255, 0.4);
    background-color: #e6f2ff;
}

/* Botões com características comuns */
.zoom-button, .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
}

.zoom-button i {
    margin-right: 8px;
}

.zoom-details {
    margin-top: 15px;
    font-size: 1.1rem;
}

.zoom-details p {
    margin: 8px 0;
}

/* Motto */
.motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer .confirmation {
    margin: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}



/* Seções de Gestão de Resíduos Sólidos */

/* Estilos Comuns para as Seções */
/* Aplicando o princípio de interface segregada agrupando seções com propriedades comuns */
.waste-management-info, 
.waste-composition, 
.landfill-project,
.invitation {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.waste-management-info, 
.waste-composition, 
.landfill-project {
    padding: 40px;
}

.section-title,
.invitation-heading {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after,
.invitation-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

.section-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Seção de Informações da Gestão de Resíduos */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}



.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.info-card h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.6;
}

/* Seção de Composição de Resíduos */
.composition-chart {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}

.chart-container {
    flex: 1;
    min-width: 300px;
}

.chart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.chart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc(var(--percentage));
    background-color: rgba(212, 175, 55, 0.3);
    z-index: 1;
}

.item-label, .item-value {
    position: relative;
    z-index: 2;
}

.item-value {
    font-weight: 600;
    color: var(--primary-color);
}

.chart-info {
    flex: 1;
    min-width: 300px;
}

.chart-info p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.6;
}

/* Seção do Projeto do Aterro */
.landfill-details {
    margin-top: 30px;
}

.detail-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}



.detail-item h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item h3 i {
    color: var(--secondary-color);
}

.detail-item p {
    text-align: justify;
    line-height: 1.6;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Estilos específicos para cada botão após propriedades comuns */
.zoom-button {
    padding: 12px 25px;
    margin: 15px 0;
    opacity: 0.6;
    pointer-events: none; /* Desativa cliques por padrão */
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.zoom-button.active {
    opacity: 1;
    pointer-events: auto; /* Permite cliques quando ativo */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo para o link do Zoom na mensagem de confirmação */
.zoom-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0 2px;
}

.zoom-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.zoom-link:after {
    content: '\f0c1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.7;
}

.cta-button {
    padding: 12px 30px;
    font-size: 1.1rem;
}



/* Responsive */
/* Tablets e dispositivos médios */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-brasao {
        width: 80px;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .logo-text h2 {
        font-size: 1.4rem;
    }
    
    .invitation-heading, .section-title {
        font-size: 1.8rem;
    }
    
    .invitation-intro, .section-intro {
        font-size: 1.1rem;
    }
    
    .invitation, .waste-management-info, .waste-composition, .landfill-project {
        padding: 25px;
    }
    
    .event-details, .info-grid {
        grid-template-columns: 1fr;
    }
    
    .motto {
        font-size: 1.2rem;
    }
    
    .composition-chart {
        flex-direction: column;
    }

    .zoom-button, .cta-button {
        display: block;
        width: 100%;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    /* Container e espaçamento */
    .container {
        padding: 0 15px;
    }

    /* Cabeçalho */
    header {
        padding: 15px 0;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-brasao {
        width: 60px;
    }

    /* Conteúdo principal */
    main {
        padding: 20px 0;
    }

    /* Seções */
    .invitation, .waste-management-info, .waste-composition, .landfill-project {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    /* Texto */
    .invitation-heading, .section-title {
        font-size: 1.5rem;
    }

    .invitation-intro, .section-intro {
        font-size: 1rem;
    }

    .main-invitation-text {
        font-size: 1.1rem;
        padding: 0;
    }

    /* Detalhes do evento */
    .event-details {
        gap: 15px;
        margin: 20px 0;
    }

    .detail {
        padding: 15px;
    }

    .detail i {
        font-size: 1.5rem;
        margin-right: 15px;
    }

    /* Componentes específicos */
    .address-section, .confirmation, .zoom-section {
        padding: 15px;
        margin: 20px 0;
    }

    .contact-methods {
        gap: 10px;
    }

    .contact p {
        font-size: 0.9rem;
    }

    /* Botões */
    .zoom-button, .cta-button {
        padding: 15px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Elementos interativos */
    .chart-item {
        padding: 8px 10px;
    }

    .item-label {
        font-size: 0.9rem;
    }

    /* Ajustes para elementos clicáveis - melhor experiência touch */
    a, button, .detail, .info-card, .chart-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }

    a, button {
        min-height: 44px; /* Área mínima de toque recomendada */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 320px) {
    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text h2 {
        font-size: 1rem;
    }

    .invitation-heading, .section-title {
        font-size: 1.3rem;
    }

    .main-invitation-text {
        font-size: 1rem;
    }

    .zoom-details p {
        font-size: 0.9rem;
    }
}
