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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #1f2933;
    line-height: 1.6;
}

/* Barra superior fixa */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e1e5ee;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Marca / logo */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Navegação */
.nav-links {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Layout principal */
.page {
    max-width: 1100px;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.75rem;
}

.card h1,
.card h2 {
    margin-bottom: 0.75rem;
}

.card p + p {
    margin-top: 0.5rem;
}

/* Seção hero principal */
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-info h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Tag especial MoveTech */
.movetech-tag {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-weight: 600;
}

/* Foto */
.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #e5e7eb;
}

/* Listas */
.list {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
}

.list li {
    margin-bottom: 0.35rem;
}

/* Botão Home */
.btn-home {
    background: #eee;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    border: 1px solid #ccc;
    transition: background 0.2s;
}

.btn-home:hover {
    background: #ddd;
}

/* Responsivo — cabeçalho e hero */
@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .hero-top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .hero-photo img {
        width: 120px;
        height: 120px;
    }
}

/* Container que força o layout lado a lado */
.gallery-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cada figura (item da galeria) */
.gallery-item {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

/* Imagem */
.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* Media Query: telas pequenas */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        flex: 1 1 100%;
    }
}