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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f4f8; /* azul muito claro */
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #e8f0f8; /* azul claro */
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hq-container {
    background-color: #ffffff;
    padding: 40px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hq-photo {
    height: 40%;
    width: 75%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px 0;
    background-color: #e1ecf4; /* tom azulado */
    padding: 20px;
    border-radius: 20px;
}

.highlight {
    background-color: #ffffff;
    border: 2px solid #0a3d62;
    color: #0a3d62;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.highlight:hover {
    transform: scale(1.05);
}

.highlight .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.highlight .icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.highlight .text {
    font-size: 1.1rem;
    font-weight: 600;
}

main {
    padding: 40px 20px;
    text-align: center;
    background-color: #f4f6f9;
}

.projects h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0a3d62;
}

.project-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.project-gallery figure {
    width: 300px;
    margin: 0;
}

.project-gallery img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.projects p {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    color: #444;
    transition: transform 0.3s ease;
}

.projects p:hover {
    transform: scale(1.01);
}

footer {
    background-color: #0a3d62;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
}

footer .social {
    margin-bottom: 15px;
}

footer .social a img {
    width: 32px;
    margin: 0 10px;
    vertical-align: middle;
}

footer .contact p {
    margin: 8px 0;
}

.location iframe {
    width: 90%;
    display: block;
    margin: 0 auto;
    border: 0;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.topbar-logo img {
    height: 40px;
}

.topbar-links {
    display: flex;
    align-items: center;
}

.topbar-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s ease;
}

.topbar-links a:hover {
    color: #007bff;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .topbar-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 2rem;
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 8px;
    }

    .topbar-links a {
        margin: 0.5rem 0;
    }

    .topbar-links.active {
        display: flex;
    }
}

body {
    padding-top: 70px;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s ease;
    background-color: #f0f0f0;
}

#scrollToTopBtn:hover {
    background-color: #007bff;
    color: white;
}

#quem-somos, #projetos {
    scroll-margin-top: 100px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#loader {
  position: fixed;
  z-index: 9999;
  background: #fff;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader img {
   width: 500px;
  height: auto;
}

.project-gallery {
  cursor: pointer;
}
