/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.4em;
    margin-bottom: 0.8em;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EF7915;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.8em;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: #EF7915;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #d8680f;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero Section */
.hero {
    background-color: #f9f9f9;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: #f0f0f0;
    z-index: 1;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#logo-container-main {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

#logo-img-main {
    height: 280px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.4em;
    color: #000000;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    font-weight: 300;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero h2:after {
    display: none;
}

.hero p {
    font-size: 1.25em;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero .address-line {
    display: inline-block;
    background-color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    margin: 0.45rem 0.35rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.hero .address-line p {
    margin-bottom: 0;
}

/* Main Content */
main {
    background-color: #F6F4F3;
    padding: 0;
    margin: 0;
}

main section {
    padding: 5rem 0 3rem;
    position: relative;
    border: none;
}

main section:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Remove any potential gap between main and footer */
main {
    margin-bottom: 0;
}

footer {
    margin-top: 0;
    border-top: none;
}

/* Document Section */
#publicacoes {
    text-align: center;
}

#publicacoes h2 {
    font-size: 1.7em;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.document-category {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.document-category h3 {
    background-color: #EF7915;
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.4em;
}

.document-links {
    padding: 25px 20px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    margin: 8px;
    background-color: #f5f5f5;
    color: #333 !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button:hover {
    background-color: #EF7915;
    color: #fff !important;
    text-decoration: none;
}

/* Contact Section */
#contactos {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.contact-info strong {
    color: #EF7915;
    font-weight: 600;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    min-height: 400px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* Footer */
footer {
    background-color: #F6F4F3;
    color: #4E4D4D;
    padding: 0.1rem 0;
    position: relative;
    overflow: hidden;
}

footer:before, footer:after {
    content: '';
    position: absolute;
    background-color: rgba(239, 121, 21, 0.05);
    border-radius: 50%;
    z-index: 0;
}

footer:before {
    width: 60px;
    height: 60px;
    left: 5%;
    top: -30px;
}

footer:after {
    width: 40px;
    height: 40px;
    right: 15%;
    bottom: -20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0;
    opacity: 0.85;
    flex: 1;
    text-align: left;
    padding-right: 10px;
    font-size: 0.65em;
    line-height: 1.1;
}

/* Reclamações Button in Footer */
.reclamacoes-button {
    margin: 0;
}

.reclamacoes-button a {
    display: inline-block;
    background-color: rgba(165, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.reclamacoes-button img {
    max-width: 150px;
    height: auto;
    display: block;
}

.reclamacoes-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background-color: rgba(165, 0, 0, 1);
}

/* Remove unnecessary flex sections styling */
.flex-sections {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    footer p {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-right: 0;
    }
    
    .reclamacoes-button {
        margin-top: 1rem;
    }
}

/* Accent Decorations */
.section-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(239, 121, 21, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.decoration-1 {
    top: -75px;
    left: -75px;
}

.decoration-2 {
    bottom: -75px;
    right: -75px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero:before {
        width: 35%;
    }
    
    #logo-img-main {
        height: 240px;
    }
    
    .hero h2 {
        font-size: 3em;
    }
    
    .contact-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }
    
    .hero:before {
        display: none;
    }
    
    #logo-img-main {
        height: 200px;
    }
    
    .hero h2 {
        font-size: 2.4em;
        line-height: 1.3;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map {
        min-height: 300px;
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    .map iframe {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    #logo-img-main {
        height: 180px;
    }
    
    .hero h2 {
        font-size: 2em;
        line-height: 1.3;
    }
    
    .hero .address-line {
        padding: 10px 20px;
    }
    
    .document-category h3 {
        padding: 15px;
    }
    
    .document-links {
        padding: 20px 15px;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 0.9em;
        width: 100%;
        margin: 5px 0;
    }
}

/* Publication Button */
.publication-button {
    text-align: center;
    margin: 3rem 0;
}

.publication-button .button {
    font-size: 1.3em;
    padding: 18px 45px;
    background-color: #EF7915;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(239, 121, 21, 0.4);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publication-button .button:before {
    content: "📄 ";
    margin-right: 10px;
    font-size: 1.2em;
}

.publication-button .button:hover {
    background-color: #d8680f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 121, 21, 0.5);
}

@media (max-width: 480px) {
    .publication-button .button {
        font-size: 1.1em;
        padding: 15px 35px;
    }
}

/* Flex Sections for Side by Side Layout */
.flex-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

#publicacoes, #reclamacoes {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

#reclamacoes {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reclamacoes-button {
    text-align: center;
    margin: 3rem 0;
}

.reclamacoes-button a {
    display: inline-block;
    background-color: rgba(165, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.reclamacoes-button img {
    max-width: 150px;
    height: auto;
    display: block;
}

.reclamacoes-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background-color: rgba(165, 0, 0, 1); /* Slightly darker on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flex-sections {
        flex-direction: column;
    }
    
    #publicacoes, #reclamacoes {
        width: 100%;
        padding: 1.5rem;
    }
}

/* Publications Flex Layout */
.publications-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.publications-flex .publication-button {
    margin: 0.5rem;
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .publications-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .publications-flex .publication-button {
        width: 100%;
        max-width: 400px;
    }
} 